author | sogoel |
Mon, 07 Jul 2014 12:44:20 -0700 | |
changeset 25437 | a06886489a6c |
parent 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 5097250 5087624 * @summary Finalize methods on enums must be compile time error * @author Peter von der Ah\u00e9 * @compile/fail/ref=NoFinal2.out -XDrawDiagnostics NoFinal2.java */ enum NoFinal2 { A, B, C; protected void finalize() { System.err.println("FISK"); } }