-1:000000000000 | 0:959103a6100f |
---|---|
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 */ | |
10 | |
11 public class EnumAsIdentifier { | |
12 | |
13 int enum = 0; | |
14 | |
15 } | |
16 |