mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
18 lines
331 B
Java
18 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 {
|
|
}
|