Package: gcj-3.3 Version: 1:3.3-1.bunk.2 Severity: normal 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. -- System Information Debian Release: 3.0-bunk-1 Architecture: i386 Kernel: Linux strcmp.libc 2.4.22.strcmp.5.1 #1 Wed Dec 17 00:14:24 CET 2003 i686 Locale: LANG=C, LC_CTYPE=de_DE Versions of packages gcj-3.3 depends on: ii gcc-3.3 1:3.3-1.bunk.2 The GNU C compiler ii gcc-3.3-base 1:3.3-1.bunk.2 The GNU Compiler Collection (base ii java-common 0.14 Base of all Java packages ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an ii libgcc1 1:3.3.2-4 GCC support library ii libgcj4 1:3.3-1.bunk.2 Java runtime library for use with ii libgcj4-dev 1:3.3-1.bunk.2 Java development headers and stati ii zlib1g 1:1.1.4-1.0woody0 compression library - runtime