< prev index next >

test/langtools/tools/javac/switchextra/SwitchStatementBroken.java

Print this page

        

*** 1,10 **** /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify that rule and ordinary cases cannot be mixed. ! * @compile/fail/ref=SwitchStatementBroken.out -XDrawDiagnostics --enable-preview -source 12 SwitchStatementBroken.java */ public class SwitchStatementBroken { private void statementBroken(int i) { --- 1,10 ---- /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify that rule and ordinary cases cannot be mixed. ! * @compile/fail/ref=SwitchStatementBroken.out -XDrawDiagnostics --enable-preview -source 13 SwitchStatementBroken.java */ public class SwitchStatementBroken { private void statementBroken(int i) {
< prev index next >