2007-12-01 00:00:00 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 4994049
|
|
|
|
* @summary Improved diagnostics while parsing enums
|
|
|
|
* @author Peter von der Ah\u00e9
|
2010-07-26 21:18:45 +00:00
|
|
|
* @compile/fail/ref=T4994049.out -XDrawDiagnostics T4994049.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public enum T4994049 {
|
|
|
|
FOO {
|
|
|
|
}
|
|
|
|
|
2019-08-13 08:27:33 +00:00
|
|
|
BAR1,
|
|
|
|
BAR2(),
|
|
|
|
BAR3 {},
|
|
|
|
BAR4() {};
|
2007-12-01 00:00:00 +00:00
|
|
|
}
|