2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-12 17:31:31 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4901280
|
|
|
|
* @summary name lookup scope for annotations
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-12 17:31:31 -07:00
|
|
|
* @compile/fail/ref=Scope.out -XDrawDiagnostics Scope.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package annotation.scope;
|
|
|
|
|
|
|
|
@A(red) // error: red not in scope.
|
|
|
|
enum E {
|
|
|
|
red, green, blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
@interface A {
|
|
|
|
E value();
|
|
|
|
}
|