2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-07 19:36:45 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 5009574
|
|
|
|
* @summary verify java.lang.Enum can't be directly subclassed
|
|
|
|
* @author Joseph D. Darcy
|
|
|
|
*
|
2014-07-07 19:36:45 +00:00
|
|
|
* @compile/fail/ref=FauxEnum1.out -XDrawDiagnostics FauxEnum1.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class FauxEnum1 extends java.lang.Enum {
|
|
|
|
private FauxEnum1() {
|
|
|
|
// super("", 0);
|
|
|
|
}
|
|
|
|
}
|