2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-12 17:39:56 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4901271
|
|
|
|
* @summary java.lang.annotation.Target
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-12 17:39:56 -07:00
|
|
|
* @compile/fail/ref=WrongTarget.out -XDrawDiagnostics WrongTarget.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
2014-08-12 17:39:56 -07: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 {
|
|
|
|
}
|