2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 20:29:58 +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
|
2014-07-02 20:29:58 +00:00
|
|
|
* @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();
|
|
|
|
}
|