test/tools/javac/enum/OkFinal.java

Print this page

        

*** 24,35 **** /* * @test * @bug 5097250 * @summary Finalize methods on enums must be compile time error * @author Peter von der Ah\u00e9 - * @compile -source 5 OkFinal.java - * @run main OkFinal */ public enum OkFinal { A { protected void finalize(Void nil) { --- 24,33 ----