test/tools/javac/enum/ExplicitlyFinalEnum2.java

Print this page

        

*** 25,35 **** * @test * @bug 5009601 * @summary enum's cannot be explicitly declared final * @author Joseph D. Darcy * ! * @compile/fail -source 1.5 ExplicitlyFinalEnum2.java */ final enum ExplicitlyFinalEnum2 { FE { void foo() {return;} --- 25,35 ---- * @test * @bug 5009601 * @summary enum's cannot be explicitly declared final * @author Joseph D. Darcy * ! * @compile/fail ExplicitlyFinalEnum2.java */ final enum ExplicitlyFinalEnum2 { FE { void foo() {return;}