< prev index next >

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

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

*** 1,10 **** /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify that not allowed types of statements cannot be used in rule case. ! * @compile/fail/ref=SwitchStatementBroken2.out -XDrawDiagnostics --enable-preview -source ${jdk.version} SwitchStatementBroken2.java */ public class SwitchStatementBroken2 { private void statementArrowNotArbitraryStatements(int i, int j) { --- 1,10 ---- /* * @test /nodynamiccopyright/ * @bug 8206986 * @summary Verify that not allowed types of statements cannot be used in rule case. ! * @compile/fail/ref=SwitchStatementBroken2.out -XDrawDiagnostics SwitchStatementBroken2.java */ public class SwitchStatementBroken2 { private void statementArrowNotArbitraryStatements(int i, int j) {
< prev index next >