test/tools/javac/enum/T5081785.java

Print this page

        

*** 26,39 **** * @bug 5081785 * * @summary Empty Enums allowed in non-static contexts * @author Peter von der Ah\u00e9 * ! * @compile/fail -source 1.5 T5081785.java ! * @compile/fail -source 1.5 T5081785a.java ! * @compile/fail -source 1.5 T5081785b.java ! * @compile/fail -source 1.5 T5081785c.java */ class A { public void check() { class Foo { --- 26,39 ---- * @bug 5081785 * * @summary Empty Enums allowed in non-static contexts * @author Peter von der Ah\u00e9 * ! * @compile/fail T5081785.java ! * @compile/fail T5081785a.java ! * @compile/fail T5081785b.java ! * @compile/fail T5081785c.java */ class A { public void check() { class Foo {