1 /** 2 * @test /nodynamiccopyright/ 3 * @bug 8025537 4 * @author sogoel 5 * @summary enum keyword used as an identifier 6 * @compile/fail/ref=EnumAsIdentifier.out -XDrawDiagnostics EnumAsIdentifier.java 7 */ 8 9 public class EnumAsIdentifier { 10 11 int enum = 0; 12 13 } 14