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

Print this page

        

*** 25,35 **** * @test * @bug 4901271 * @summary <at>Target * @author gafter * ! * @compile/fail -source 1.5 DupTarget.java */ @java.lang.annotation.Target({TYPE, FIELD, PACKAGE, FIELD}) @interface DupTarget { } --- 25,35 ---- * @test * @bug 4901271 * @summary <at>Target * @author gafter * ! * @compile/fail DupTarget.java */ @java.lang.annotation.Target({TYPE, FIELD, PACKAGE, FIELD}) @interface DupTarget { }