blob: c3622976c750c3be5a63f6b2c49c404dfe7c2d04 [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() {
new @A String();
}
}
@java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE)
@interface A { }