Community
Participate
Working Groups
Related to bug 84551, the reported error message is misleading. Test case: class Outer { class Inner { } static void test(Inner i) { } } compile sans problème, mais: class Outer<T> { class Inner { } static void test(Inner i) { } } We now report: Cannot make a static reference to the type parameter Inner This is not clear what the problem is. javac reports: Outer.java:4: non-static class Outer.Inner cannot be referenced from a static context static void test(Inner i) { } ^ 1 error Not sure if this is much better.
Tweaked error message to read: Cannot make a static reference to the non-static type Inner Corrected testcases.
fixed
Verified in I20050510-0010 + JDT/Core 556.