equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * @test /nodynamiccopyright/ |
2 * @test /nodynamiccopyright/ |
3 * @bug 8206986 |
3 * @bug 8206986 |
4 * @summary Verify that not allowed types of statements cannot be used in rule case. |
4 * @summary Verify that not allowed types of statements cannot be used in rule case. |
5 * @compile/fail/ref=SwitchStatementBroken2.out -XDrawDiagnostics --enable-preview -source ${jdk.version} SwitchStatementBroken2.java |
5 * @compile/fail/ref=SwitchStatementBroken2.out -XDrawDiagnostics SwitchStatementBroken2.java |
6 */ |
6 */ |
7 |
7 |
8 public class SwitchStatementBroken2 { |
8 public class SwitchStatementBroken2 { |
9 |
9 |
10 private void statementArrowNotArbitraryStatements(int i, int j) { |
10 private void statementArrowNotArbitraryStatements(int i, int j) { |