< prev index next >

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

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

*** 23,33 **** /* * @test * @bug 8223305 * @summary Ensure javac is not crashing for wrong breaks. ! * @compile/fail/ref=WrongBreakTest.out --enable-preview -source ${jdk.version} -XDrawDiagnostics -XDshould-stop.at=FLOW WrongBreakTest.java */ public class WrongBreakTest { void test(int i) { --- 23,33 ---- /* * @test * @bug 8223305 * @summary Ensure javac is not crashing for wrong breaks. ! * @compile/fail/ref=WrongBreakTest.out -XDrawDiagnostics -XDshould-stop.at=FLOW WrongBreakTest.java */ public class WrongBreakTest { void test(int i) {
< prev index next >