author | jlahoda |
Thu, 09 Oct 2014 10:08:52 +0200 | |
changeset 26993 | 513b2cae81c3 |
parent 25309 | dcd9a7e19669 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
25309
dcd9a7e19669
8044864: .out files for enum tests in tools/javac dir - part 1
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 5023177 |
4 |
* @summary One can refer static, const static variables from instance initializers of enum |
|
5 |
* @author gafter |
|
25309
dcd9a7e19669
8044864: .out files for enum tests in tools/javac dir - part 1
sogoel
parents:
5520
diff
changeset
|
6 |
* @compile/fail/ref=DA1.out -XDrawDiagnostics DA1.java |
10 | 7 |
*/ |
8 |
||
9 |
enum T1 { |
|
10 |
; |
|
11 |
static int N = 12; |
|
12 |
int M = N; |
|
13 |
} |