test/langtools/tools/javac/switchexpr/TryCatchFinally.java
changeset 59021 cfc7bb9a5a92
parent 55340 ef577fa0dd10
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 8220018
    26  * @bug 8220018
    27  * @summary Verify that try-catch-finally inside a switch expression works properly.
    27  * @summary Verify that try-catch-finally inside a switch expression works properly.
    28  * @compile --enable-preview -source ${jdk.version} TryCatchFinally.java
    28  * @compile TryCatchFinally.java
    29  * @run main/othervm --enable-preview TryCatchFinally
    29  * @run main TryCatchFinally
    30  */
    30  */
    31 public class TryCatchFinally {//TODO: yield <double>
    31 public class TryCatchFinally {//TODO: yield <double>
    32     public static void main(String[] args) {
    32     public static void main(String[] args) {
    33         for (int p1 = 0; p1 < 2; p1++) {
    33         for (int p1 = 0; p1 < 2; p1++) {
    34             for (int p2 = 0; p2 < 2; p2++) {
    34             for (int p2 = 0; p2 < 2; p2++) {