author | jlahoda |
Tue, 13 Aug 2019 10:27:33 +0200 | |
changeset 57724 | 447d48371b41 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 4994049 |
|
4 |
* @summary Improved diagnostics while parsing enums |
|
5 |
* @author Peter von der Ah\u00e9 |
|
6150 | 6 |
* @compile/fail/ref=T4994049.out -XDrawDiagnostics T4994049.java |
10 | 7 |
*/ |
8 |
||
9 |
public enum T4994049 { |
|
10 |
FOO { |
|
11 |
} |
|
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 | 17 |
} |