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

Print this page

        

*** 25,35 **** * @test * @bug 4951298 * @summary compiler: crashes when attributes with same elements are used in place of other * @author gafter * ! * @compile/fail -source 1.5 WrongValue.java */ @interface TestM2 { String message() default "MyMessage"; Class myClass() default Integer.class; --- 25,35 ---- * @test * @bug 4951298 * @summary compiler: crashes when attributes with same elements are used in place of other * @author gafter * ! * @compile/fail WrongValue.java */ @interface TestM2 { String message() default "MyMessage"; Class myClass() default Integer.class;