equal
deleted
inserted
replaced
23 |
23 |
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 8214114 |
26 * @bug 8214114 |
27 * @summary Verify try-catch inside a switch expression works properly. |
27 * @summary Verify try-catch inside a switch expression works properly. |
28 * @compile --enable-preview -source ${jdk.version} TryCatch.java |
28 * @compile TryCatch.java |
29 * @run main/othervm --enable-preview TryCatch |
29 * @run main TryCatch |
30 */ |
30 */ |
31 public class TryCatch { |
31 public class TryCatch { |
32 public static void main(String[] args) { |
32 public static void main(String[] args) { |
33 { |
33 { |
34 int val = 3; |
34 int val = 3; |