Sat, 22 Dec 2018 13:10:38 -0800
Added tag jdk8u202-b25 for changeset 15d8c732039b
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 8025537 5028491
4 * @author sogoel
5 * @summary enum constants should precede other enum members
6 * @compile/fail/ref=EnumMembersOrder.out -XDrawDiagnostics EnumMembersOrder.java
7 */
9 enum Days {
11 Days(String d) { day = d; } // constructor
13 // enum constants
14 WEEKEND("SAT"),
15 WEEKDAY("MON");
17 private String day;
19 }