Community
Participate
Working Groups
Using latest the following code reports an error: @interface I { Class[] classes(); } class Y {} public class X { @I(classes = {X.class}) public void foo(){ } } ---------- 1. ERROR in c:\tests_sources\X.java (at line 7) @I(classes = {X.class}) public void foo(){ ^^^^^^^^^ The value for annotation attribute I.classes must be a class literal ---------- 1 problem (1 error) Array of java.lang.Class are legal values for the type of an annotation typoe member declaration.
Created attachment 16243 [details] Apply on HEAD
Integrated patch. Regression test: AnnotationTest#test065 Fixed
Verified in 200412140800