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

16 lines
374 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 abstract even if they are abstract
* @author Joseph D. Darcy
* @compile/fail/ref=ExplicitlyAbstractEnum2.out -XDrawDiagnostics ExplicitlyAbstractEnum2.java
2007-12-01 00:00:00 +00:00
*/
abstract enum ExplicitlyAbstractEnum2 {
FE {
void foo() {return;}
};
abstract void foo();
}