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