Sat, 22 Dec 2018 13:10:38 -0800
Added tag jdk8u202-b25 for changeset 15d8c732039b
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 }