Community
Participate
Working Groups
We have had a bug raised against AspectJ (bug 95992) but it turns out to be a difference between the JDT compiler and SUNs javac. Here is the program: interface Base<T> { static interface Inner { } } class Test<T extends Test.InnerTest> implements Base<T> { static class InnerTest implements Inner { } } Compiling with 3.1m7 or 3.1rc1 compilers results in: Test.java:14 [error] Inner cannot be resolved to a type static class InnerTest implements Inner { Sun's javac compiles it without any error. The error can be avoided by simply writing "Base.Inner" instead of just "Inner". Also, it compiles fine if the constraint "extends Test.InnerTest" is left away.
Reproduced in latest
+1 for RC2
Added to GenericType test050
Verified with N20050609-0010 + JDT/Core HEAD
Verified for 3.1 RC2 using build I20050610-0010
close