< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java

Print this page

        

*** 4220,4230 **** * reference its static members unless they are constant. * * @param tree The tree making up the variable reference. * @param env The current environment. * @param v The variable's symbol. ! * @jls section 8.9 Enums */ private void checkEnumInitializer(JCTree tree, Env<AttrContext> env, VarSymbol v) { // JLS: // // "It is a compile-time error to reference a static field --- 4220,4230 ---- * reference its static members unless they are constant. * * @param tree The tree making up the variable reference. * @param env The current environment. * @param v The variable's symbol. ! * @jls 8.9 Enum Types */ private void checkEnumInitializer(JCTree tree, Env<AttrContext> env, VarSymbol v) { // JLS: // // "It is a compile-time error to reference a static field
< prev index next >