Community
Participate
Working Groups
BETA_JAVA8: JSR308 forbids application of type annotations on class literals. The draft spec cites the following examples as illegal ones: @Even int.class // illegal! int @NonEmpty [].class // illegal! ECJ's grammar as of this date forbids the former, but allows the latter. This needs to be fixed: //-------------- public class X { public static void main(String[] args) { System.out.println(int @NonEmpty [].class); // illegal, but allowed now } } @interface NonEmpty { }
Fix and tests released via http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=BETA_JAVA8&id=d3fd47ec1acf43c9fa0a5d80ed5f157dac6d148b