< prev index next >

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

Print this page
rev 56806 : 8232684: Make switch expressions final
Reviewed-by: TBD

*** 23,35 **** /* * @test * @bug 8206986 * @summary Verify that an switch expression over enum can be exhaustive without default. ! * @compile --enable-preview -source ${jdk.version} ExhaustiveEnumSwitch.java * @compile ExhaustiveEnumSwitchExtra.java ! * @run main/othervm --enable-preview ExhaustiveEnumSwitch */ public class ExhaustiveEnumSwitch { public static void main(String... args) { new ExhaustiveEnumSwitch().run(); --- 23,35 ---- /* * @test * @bug 8206986 * @summary Verify that an switch expression over enum can be exhaustive without default. ! * @compile ExhaustiveEnumSwitch.java * @compile ExhaustiveEnumSwitchExtra.java ! * @run main ExhaustiveEnumSwitch */ public class ExhaustiveEnumSwitch { public static void main(String... args) { new ExhaustiveEnumSwitch().run();
< prev index next >