test/tools/javac/enum/FauxEnum3.java

Print this page

        

*** 25,35 **** * @test * @bug 5009574 * @summary verify an enum type can't be directly subclassed * @author Joseph D. Darcy * ! * @compile/fail -source 1.5 FauxEnum3.java */ public class FauxEnum3 extends SpecializedEnum { } --- 25,35 ---- * @test * @bug 5009574 * @summary verify an enum type can't be directly subclassed * @author Joseph D. Darcy * ! * @compile/fail FauxEnum3.java */ public class FauxEnum3 extends SpecializedEnum { }