jdk-24/test/langtools/tools/javac/enum/ExplicitlyFinalEnum2.java

16 lines
333 B
Java
Raw Normal View History

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