Mon, 24 Nov 2014 14:55:38 -0800
8059921: Missing compile error in Java 8 mode for Interface.super.field access
Reviewed-by: mcimadamore, jlahoda
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 }