< prev index next >
test/langtools/tools/javac/switchextra/SwitchStatementBroken2.java
Print this page
*** 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 12 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 --enable-preview -source 13 SwitchStatementBroken2.java
*/
public class SwitchStatementBroken2 {
private void statementArrowNotArbitraryStatements(int i, int j) {
< prev index next >