19 lines
331 B
Java
Raw Normal View History

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