2014-08-12 17:39:56 -07:00

19 lines
331 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4901271
* @summary java.lang.annotation.Target
* @author gafter
*
* @compile/fail/ref=WrongTarget.out -XDrawDiagnostics WrongTarget.java
*/
import static java.lang.annotation.ElementType.*;
@java.lang.annotation.Target({FIELD})
@interface foo {
}
@foo
public class WrongTarget {
}