langtools/test/tools/javac/enum/DA3.java
author katleman
Thu, 21 Aug 2014 14:16:14 -0700
changeset 25878 6d561031123e
parent 25309 dcd9a7e19669
permissions -rw-r--r--
Added tag jdk9-b27 for changeset 98ce0879ab4c

/*
 * @test /nodynamiccopyright/
 * @bug 5023177
 * @summary One can refer static, const static variables from instance initializers of enum
 * @author gafter
 * @compile/fail/ref=DA3.out -XDrawDiagnostics DA3.java
 */

enum T3 {
    ;
    static int N = 12;
    T3() {
        int M = N;
    }
}