Community
Participate
Working Groups
Using I20070403-1110, the following test cases compile fine. They should be rejected. public class X<T> { void foo() { System.out.println(T[].class); } } public class X { <T> void foo() { System.out.println(T[].class); } }
Created attachment 63079 [details] Proposed fix This error message might not be ideal, but this prevents the addition of a new API constant in IProblem.
Philippe, please double-check.
Created attachment 63081 [details] Regression tests
Released for 3.3M7. Philippe, please reopen if you believe it is not good enough.
Fix looks good, thx.
Pls backport to 3.2 maintenance.
Verified for 3.3 M7 using build I20070427-0010.
*** Bug 186496 has been marked as a duplicate of this bug. ***
Backported to 3.2 maintenance stream.