jdk-24/test/langtools/tools/javac/annotations/neg/WrongTarget.java
2017-09-12 19:03:39 +02: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 {
}