Community
Participate
Working Groups
Build 3.2M2 The compiler doesn't flag array type references to raw types as "raw type usage" as it should. e.g. public class X<T> { { X rawx = null; X[] rawxs = { rawx }; System.out.println(rawxs.length); } } There should be a warning against "X[]".
Released for 3.3M3. Should backport to 3.2.2.
Created attachment 51157 [details] Proposed patch Patch released to HEAD (3.3M3). It contains a bit more changes than just missing raw type warning; for improving location of (single) array type references.
Entire patch should be backported.
Added org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test1041
Updated existing tests: org.eclipse.jdt.core.tests.compiler.regression.AnnotationTest org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_5 org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest org.eclipse.jdt.core.tests.compiler.regression.VarArgsTest
Released for 3.3M3
Released for 3.3M3. Released for 3.2.2.
Verified for 3.3 M3 using build I20061030-0010
Verified for 3.2.2 using build M20070112-1200.