jdk-24/test/langtools/tools/javac/T4994049/T4994049.java
Jan Lahoda 36ae680f2a 8228647: Broken enum produce inconvenient errors and AST
Improving error recovery for misplace members in enums.

Reviewed-by: vromero
2019-08-13 10:27:33 +02:00

18 lines
305 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4994049
* @summary Improved diagnostics while parsing enums
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T4994049.out -XDrawDiagnostics T4994049.java
*/
public enum T4994049 {
FOO {
}
BAR1,
BAR2(),
BAR3 {},
BAR4() {};
}