equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * @test /nodynamiccopyright/ |
2 * @test /nodynamiccopyright/ |
3 * @bug 8206986 |
3 * @bug 8206986 |
4 * @summary Verify reachability in switch expressions. |
4 * @summary Verify reachability in switch expressions. |
5 * @compile/fail/ref=ExpressionSwitchUnreachable.out -XDrawDiagnostics --enable-preview -source 12 ExpressionSwitchUnreachable.java |
5 * @compile/fail/ref=ExpressionSwitchUnreachable.out -XDrawDiagnostics --enable-preview -source 13 ExpressionSwitchUnreachable.java |
6 */ |
6 */ |
7 |
7 |
8 public class ExpressionSwitchUnreachable { |
8 public class ExpressionSwitchUnreachable { |
9 |
9 |
10 public static void main(String[] args) { |
10 public static void main(String[] args) { |