Fri, 24 Apr 2020 03:58:51 +0100
Merge
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 }