test/langtools/tools/javac/T4994049/T4994049.java
author jlahoda
Tue, 13 Aug 2019 10:27:33 +0200
changeset 57724 447d48371b41
parent 47216 71c04702a3d5
permissions -rw-r--r--
8228647: Broken enum produce inconvenient errors and AST Summary: Improving error recovery for misplace members in enums. Reviewed-by: vromero

/*
 * @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() {};
}