3789983e89
Reviewed-by: darcy, ihse
19 lines
424 B
Java
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();
|
|
}
|