public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1403: interface inner classes are implicitly static
@ 2000-12-20 12:26 osk
0 siblings, 0 replies; only message in thread
From: osk @ 2000-12-20 12:26 UTC (permalink / raw)
To: java-gnats
>Number: 1403
>Category: java
>Synopsis: interface inner classes are implicitly static
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:38 PST 2000
>Closed-Date: Mon Dec 18 13:25:34 PST 2000
>Last-Modified: Mon Dec 18 13:30:01 PST 2000
>Originator: Oskar Liljeblad
>Release: unknown-1.0
>Organization:
>Environment:
gcj 2.97 20001106
>Description:
I think gcj should not require the static keyword for
inner classes in interfaces.
$ cat demo.java
interface Interface {
public class Inner {}
}
class Main {
public static void main(String[] args) {
new Interface.Inner();
}
}
$ gcj -C demo.java
demo.java: In class `Main':
demo.java: In method `main(java.lang.String[])':
demo.java:7: No enclosing instance for inner class `Interface$Inner' is in scope.
new Interface.Inner();
^
1 error
$
Oskar Liljeblad (osk@hem.passagen.se)
>How-To-Repeat:
>Fix:
Should be simple (but I haven't studied compiler technologies
yet)...
>Release-Note:
>Audit-Trail:
Formerly PR gcj/373
State-Changed-From-To: open->feedback
State-Changed-By: bryce
State-Changed-When: Fri Dec 15 21:21:56 2000
State-Changed-Why:
I submitted a patch for this:
http://gcc.gnu.org/ml/gcc-patches/2000-12/msg00829.html
From: bryce@albatross.co.nz
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
Cc:
Subject: Re: gcj/373
Date: 16 Dec 2000 05:21:56 -0000
Synopsis: interface inner classes are implicitly static
State-Changed-From-To: open->feedback
State-Changed-By: bryce
State-Changed-When: Fri Dec 15 21:21:56 2000
State-Changed-Why:
I submitted a patch for this:
http://gcc.gnu.org/ml/gcc-patches/2000-12/msg00829.html
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=373&database=java
From: Oskar Liljeblad <osk@hem.passagen.se>
To: bryce@albatross.co.nz
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/373
Date: Sun, 17 Dec 2000 12:30:31 +0100
On Saturday, December 16, 2000 at 05:56, bryce@albatross.co.nz wrote:
> Synopsis: interface inner classes are implicitly static
>
> State-Changed-From-To: open->feedback
> State-Changed-By: bryce
> State-Changed-When: Fri Dec 15 21:21:56 2000
> State-Changed-Why:
> I submitted a patch for this:
> http://gcc.gnu.org/ml/gcc-patches/2000-12/msg00829.html
If you ask me, the patch fixed the problem. I have tested it with
the original code that triggered the bug, and I don't get the error
anymore (although I get plenty other).
Oskar (osk@hem.passagen.se)
State-Changed-From-To: feedback->closed
State-Changed-By: bryce
State-Changed-When: Mon Dec 18 13:25:34 2000
State-Changed-Why:
Oskar reports that the patch works, and it has been checked in.
From: bryce@albatross.co.nz
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
Cc:
Subject: Re: gcj/373
Date: 18 Dec 2000 21:25:34 -0000
Synopsis: interface inner classes are implicitly static
State-Changed-From-To: feedback->closed
State-Changed-By: bryce
State-Changed-When: Mon Dec 18 13:25:34 2000
State-Changed-Why:
Oskar reports that the patch works, and it has been checked in.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=373&database=java
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-20 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:26 java/1403: interface inner classes are implicitly static osk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).