test/langtools/tools/javac/switchexpr/ExhaustiveEnumSwitch.java
changeset 59021 cfc7bb9a5a92
parent 53878 4584d0331318
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8206986
    26  * @bug 8206986
    27  * @summary Verify that an switch expression over enum can be exhaustive without default.
    27  * @summary Verify that an switch expression over enum can be exhaustive without default.
    28  * @compile --enable-preview -source ${jdk.version} ExhaustiveEnumSwitch.java
    28  * @compile ExhaustiveEnumSwitch.java
    29  * @compile ExhaustiveEnumSwitchExtra.java
    29  * @compile ExhaustiveEnumSwitchExtra.java
    30  * @run main/othervm --enable-preview ExhaustiveEnumSwitch
    30  * @run main ExhaustiveEnumSwitch
    31  */
    31  */
    32 
    32 
    33 public class ExhaustiveEnumSwitch {
    33 public class ExhaustiveEnumSwitch {
    34     public static void main(String... args) {
    34     public static void main(String... args) {
    35         new ExhaustiveEnumSwitch().run();
    35         new ExhaustiveEnumSwitch().run();