1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/enum/EnumAsIdentifier.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,16 @@ 1.4 +/** 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8025537 1.7 + * @author sogoel 1.8 + * @summary enum keyword used as an identifier 1.9 + * @compile/ref=EnumAsIdentifier4.out -XDrawDiagnostics -source 1.4 EnumAsIdentifier.java 1.10 + * @compile/fail/ref=EnumAsIdentifier5.out -XDrawDiagnostics -source 1.5 EnumAsIdentifier.java 1.11 + * @compile/fail/ref=EnumAsIdentifier.out -XDrawDiagnostics EnumAsIdentifier.java 1.12 + */ 1.13 + 1.14 +public class EnumAsIdentifier { 1.15 + 1.16 + int enum = 0; 1.17 + 1.18 +} 1.19 +