jdk-24/test/langtools/tools/javac/enum/ExplicitlyFinalEnum2.java
2017-09-12 19:03:39 +02:00

16 lines
333 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5009601
* @summary enum's cannot be explicitly declared final
* @author Joseph D. Darcy
* @compile/fail/ref=ExplicitlyFinalEnum2.out -XDrawDiagnostics ExplicitlyFinalEnum2.java
*/
final enum ExplicitlyFinalEnum2 {
FE {
void foo() {return;}
};
abstract void foo();
}