mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
14 lines
323 B
Java
14 lines
323 B
Java
/*
|
|
* @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");
|
|
}
|
|
}
|