< prev index next >

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

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

*** 23,33 **** /* * @test * @bug 8206986 8226510 * @summary Verify than a switch that does not yield a value is rejected. ! * @compile/fail/ref=EmptySwitch.out --enable-preview -source ${jdk.version} -XDrawDiagnostics -XDshould-stop.at=FLOW EmptySwitch.java */ public class EmptySwitch { private void print(EmptySwitchEnum t) { (switch (t) { --- 23,33 ---- /* * @test * @bug 8206986 8226510 * @summary Verify than a switch that does not yield a value is rejected. ! * @compile/fail/ref=EmptySwitch.out -XDrawDiagnostics -XDshould-stop.at=FLOW EmptySwitch.java */ public class EmptySwitch { private void print(EmptySwitchEnum t) { (switch (t) {
< prev index next >