blob: a43e2e7b070a0463082d9f080f6d37211712ef5c [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 6843077 8006775
* @summary check for invalid annotatins given the target
* @author Mahmood Ali
* @compile/fail/ref=InvalidLocation.out -XDrawDiagnostics InvalidLocation.java
*/
class InvalidLocation {
void test() {
String[] s = new String @A [5] ;
}
}
@java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE)
@interface A { }