Community
Participate
Working Groups
Build ID: M20071023-1652 Steps To Reproduce: 1. Implement an annotation with parameter of type array 2. Use annotation with parameter value { param-value1, } 3. Compile with Sun compiler which produces illegal start of expression error Code to reproduce the problem: Copy this to a java file and compile with eclipse, and external compiler e.g. Sun javac! @AnnotationWithArrayParameter( { "unchecked", }) public class AnnotationBug { } @interface AnnotationWithArrayParameter { String[] value() default {}; } More information:
Created attachment 89915 [details] AnnotationBug.java to reproduce problem
*** This bug has been marked as a duplicate of bug 112433 ***
Verified for 3.4M6