/* * @test /nodynamiccopyright/ * @bug 6843077 * @summary check for invalid annotatins given the target * @author Mahmood Ali * @compile/fail/ref=InvalidLocation.out -XDrawDiagnostics -source 1.7 InvalidLocation.java */ class InvalidLocation { void test() @A { } } @java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE) @interface A { }