equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * @test /nodynamiccopyright/ |
2 * @test /nodynamiccopyright/ |
3 * @bug 8206986 |
3 * @bug 8206986 |
4 * @summary Check behavior for invalid breaks. |
4 * @summary Check behavior for invalid breaks. |
5 * @compile/fail/ref=ExpressionSwitchBreaks2.out -XDrawDiagnostics --enable-preview -source ${jdk.version} ExpressionSwitchBreaks2.java |
5 * @compile/fail/ref=ExpressionSwitchBreaks2.out -XDrawDiagnostics ExpressionSwitchBreaks2.java |
6 */ |
6 */ |
7 |
7 |
8 public class ExpressionSwitchBreaks2 { |
8 public class ExpressionSwitchBreaks2 { |
9 private String print(int i, int j) { |
9 private String print(int i, int j) { |
10 LOOP: while (true) { |
10 LOOP: while (true) { |