author | sogoel |
Thu, 28 Aug 2014 23:42:16 -0700 | |
changeset 26273 | 2663ad455e00 |
parent 7681 | 1f0819a3341f |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26273
2663ad455e00
8049126: golden files for annotations test in tools/java dir
sogoel
parents:
7681
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4901268 |
4 |
* @summary JSR175 (5): annotations must be "constants" |
|
5 |
* @author gafter |
|
6 |
* |
|
26273
2663ad455e00
8049126: golden files for annotations test in tools/java dir
sogoel
parents:
7681
diff
changeset
|
7 |
* @compile/fail/ref=Constant.out -XDrawDiagnostics Constant.java |
10 | 8 |
*/ |
9 |
||
5011 | 10 |
package Constant; |
10 | 11 |
|
12 |
@T(a = X.x) |
|
13 |
@interface T { |
|
14 |
int a(); |
|
15 |
} |
|
16 |
||
17 |
class X { |
|
18 |
static int x; |
|
19 |
} |