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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
 * @test  /nodynamiccopyright/
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * @bug     4994049
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary Improved diagnostics while parsing enums
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author  Peter von der Ah\u00e9
6150
d055fa8ced62 6971882: Remove -XDstdout from javac test
jjg
parents: 10
diff changeset
     6
 * @compile/fail/ref=T4994049.out -XDrawDiagnostics T4994049.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
public enum T4994049 {
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
    FOO {
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
57724
447d48371b41 8228647: Broken enum produce inconvenient errors and AST
jlahoda
parents: 47216
diff changeset
    13
    BAR1,
447d48371b41 8228647: Broken enum produce inconvenient errors and AST
jlahoda
parents: 47216
diff changeset
    14
    BAR2(),
447d48371b41 8228647: Broken enum produce inconvenient errors and AST
jlahoda
parents: 47216
diff changeset
    15
    BAR3 {},
447d48371b41 8228647: Broken enum produce inconvenient errors and AST
jlahoda
parents: 47216
diff changeset
    16
    BAR4() {};
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
}