2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 20:29:58 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 5023177
|
|
|
|
* @summary One can refer static, const static variables from instance initializers of enum
|
|
|
|
* @author gafter
|
2014-07-02 20:29:58 +00:00
|
|
|
* @compile/fail/ref=DA3.out -XDrawDiagnostics DA3.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
enum T3 {
|
|
|
|
;
|
|
|
|
static int N = 12;
|
|
|
|
T3() {
|
|
|
|
int M = N;
|
|
|
|
}
|
|
|
|
}
|