< prev index next >

test/langtools/tools/javac/switchexpr/ExhaustiveEnumSwitch.java

Print this page

        

*** 23,33 **** /* * @test * @bug 8206986 * @summary Verify that an switch expression over enum can be exhaustive without default. ! * @compile --enable-preview -source 12 ExhaustiveEnumSwitch.java * @compile ExhaustiveEnumSwitchExtra.java * @run main/othervm --enable-preview ExhaustiveEnumSwitch */ public class ExhaustiveEnumSwitch { --- 23,33 ---- /* * @test * @bug 8206986 * @summary Verify that an switch expression over enum can be exhaustive without default. ! * @compile --enable-preview -source 13 ExhaustiveEnumSwitch.java * @compile ExhaustiveEnumSwitchExtra.java * @run main/othervm --enable-preview ExhaustiveEnumSwitch */ public class ExhaustiveEnumSwitch {
< prev index next >