2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-29 06:42:16 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4901268
|
|
|
|
* @summary JSR175 (5): annotations must be "constants"
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-29 06:42:16 +00:00
|
|
|
* @compile/fail/ref=Constant.out -XDrawDiagnostics Constant.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
2010-03-03 00:43:29 +00:00
|
|
|
package Constant;
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
@T(a = X.x)
|
|
|
|
@interface T {
|
|
|
|
int a();
|
|
|
|
}
|
|
|
|
|
|
|
|
class X {
|
|
|
|
static int x;
|
|
|
|
}
|