author | jjg |
Thu, 27 Aug 2009 11:08:27 -0700 | |
changeset 3766 | 7e2df99e9223 |
parent 3150 | a783d225c3e1 |
permissions | -rw-r--r-- |
/* * @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() { Object a = String @A [].class; } } @java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE) @interface A { }