This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/13513] New: problems with static inner classes of interfaces
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2003 11:44:03 -0000
- Subject: [Bug java/13513] New: problems with static inner classes of interfaces
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/225434]
rechecked with 3.3 branch and 20031229 CVS HEAD.
the compilation of
A.java:
interface A {
static class B {
}
}
C.java:
interface C extends A {
B getB();
}
D.java:
class D {
public static void main (String[] argv) {
Object o = new C() {
public B getB() {
return new B();
}
};
}
}
dies with
C.java:2: error: Type `B' not found in the declaration of the return
type of method `getB'.
B getB();
^
1 error
./C.java:2: error: Type `B' not found in the declaration of the return
type of method `getB'.
B getB();
^
D.java:4: error: Type `B' not found in the declaration of the return
type of method `getB'.
public B getB() {
^
2 errors
It works with the advertized as very standard compliant jikes, so i
assume this may be an error of gcj-3.3.
--
Summary: problems with static inner classes of interfaces
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13513