Fri, 24 Apr 2020 03:58:51 +0100
Merge
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 8025537
4 * @author sogoel
5 * @summary enum keyword used as an identifier
6 * @compile/ref=EnumAsIdentifier4.out -XDrawDiagnostics -source 1.4 EnumAsIdentifier.java
7 * @compile/fail/ref=EnumAsIdentifier5.out -XDrawDiagnostics -source 1.5 EnumAsIdentifier.java
8 * @compile/fail/ref=EnumAsIdentifier.out -XDrawDiagnostics EnumAsIdentifier.java
9 */
11 public class EnumAsIdentifier {
13 int enum = 0;
15 }