public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/4568: importing static inner classes fails
@ 2003-05-03 1:36 tromey
0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2003-05-03 1:36 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, java-prs, nobody, s.nicolas
Synopsis: importing static inner classes fails
State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Sat May 3 01:36:40 2003
State-Changed-Why:
Still a bug
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4568
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: java/4568: importing static inner classes fails
@ 2002-05-29 14:56 Mike Salisbury
0 siblings, 0 replies; 2+ messages in thread
From: Mike Salisbury @ 2002-05-29 14:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR java/4568; it has been noted by GNATS.
From: Mike Salisbury <salisbur@yahoo-inc.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org, s.nicolas@videotron.ca, java-prs@gcc.gnu.org
Cc:
Subject: Re: java/4568: importing static inner classes fails
Date: Wed, 29 May 2002 12:35:46 -0700
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4568
this also seems to be a problem when importing the outerclass and
then trying to refer to the innerclass without fully qualifying it:
---------------------
Foo.java:
package pkg;
public class Foo {
public static class Inner {
public void test() {
System.out.println("footest");
}
}
}
--------------------
Bar.java:
package pkg;
import pkg.Foo;
public class Bar extends Foo.Inner {
public void test() {
System.out.println("bartest");
}
}
--------------------
$ gcj -c pkg/*
pkg/Bar.java:5: Superclass `Foo.Inner' of class `pkg.Bar' not found.
public class Bar extends Foo.Inner {
^
adding the package name to the extends clause (pkg.Foo.Inner)
fixes things. javac has no problem with this. note that this
works fine if Foo is not in a package and is therefore already
fully qualified.
-MikeSalisbury
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-03 1:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-03 1:36 java/4568: importing static inner classes fails tromey
-- strict thread matches above, loose matches on Subject: below --
2002-05-29 14:56 Mike Salisbury
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).