author | sogoel |
Wed, 02 Jul 2014 13:29:58 -0700 | |
changeset 25309 | dcd9a7e19669 |
parent 5520 | 86e4b9a9da40 |
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 |
} |