test/tools/javac/enum/NoFinal4.java

Print this page

        

*** 24,34 **** /* * @test * @bug 5097250 5087624 * @summary Finalize methods on enums must be compile time error * @author Peter von der Ah\u00e9 ! * @compile/fail -source 5 NoFinal4.java */ enum NoFinal4 { A, B, C; private void finalize() { --- 24,34 ---- /* * @test * @bug 5097250 5087624 * @summary Finalize methods on enums must be compile time error * @author Peter von der Ah\u00e9 ! * @compile/fail NoFinal4.java */ enum NoFinal4 { A, B, C; private void finalize() {