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

19 lines
424 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5009601
* @summary verify specialized enum classes can't be abstract
* @author Joseph D. Darcy
*
* @compile/fail/ref=FauxSpecialEnum1.out -XDrawDiagnostics FauxSpecialEnum1.java
*/
public enum FauxSpecialEnum1 {
INFRARED {
void test() {System.out.println("Concrete test");}
},
ULTRAVIOLET {
abstract void test();
};
abstract void test();
}