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

Print this page

        

*** 25,35 **** * @test * @bug 4901271 * @summary java.lang.annotation.Target * @author gafter * ! * @compile/fail -source 1.5 WrongTarget.java */ @java.lang.annotation.Target({FIELD}) @interface foo { } --- 25,35 ---- * @test * @bug 4901271 * @summary java.lang.annotation.Target * @author gafter * ! * @compile/fail WrongTarget.java */ @java.lang.annotation.Target({FIELD}) @interface foo { }