test/tools/javac/enum/LocalEnum.java

Print this page

        

*** 25,35 **** * @test * @bug 5019609 * @summary javac fails to reject local enums * @author gafter * ! * @compile/fail -source 1.5 LocalEnum.java */ public class LocalEnum { void f() { enum B {} --- 25,35 ---- * @test * @bug 5019609 * @summary javac fails to reject local enums * @author gafter * ! * @compile/fail LocalEnum.java */ public class LocalEnum { void f() { enum B {}