langtools/test/tools/javac/enum/NoFinal5.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 25437 a06886489a6c
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 5097250 5087624
 * @summary Finalize methods on enums must be compile time error
 * @author Peter von der Ah\u00e9
 * @compile/fail/ref=NoFinal5.out -XDrawDiagnostics  NoFinal5.java
 */

enum NoFinal5 {
    A, B, C;
    void finalize() {
        System.err.println("FISK");
    }
}