test/tools/javac/annotations/neg/ArrayLit.java

Print this page

        

*** 25,35 **** * @test * @bug 4901266 * @summary JSR175 (4): don't allow "new" in annotations * @author gafter * ! * @compile/fail -source 1.5 ArrayLit.java */ @ArrayLit(new int[] {1, 2, 3}) @interface ArrayLit { int[] value(); --- 25,35 ---- * @test * @bug 4901266 * @summary JSR175 (4): don't allow "new" in annotations * @author gafter * ! * @compile/fail ArrayLit.java */ @ArrayLit(new int[] {1, 2, 3}) @interface ArrayLit { int[] value();