< prev index next >

test/langtools/tools/javac/switchexpr/TryCatch.java

Print this page
rev 56806 : 8232684: Make switch expressions final
Reviewed-by: TBD

*** 23,34 **** /** * @test * @bug 8214114 * @summary Verify try-catch inside a switch expression works properly. ! * @compile --enable-preview -source ${jdk.version} TryCatch.java ! * @run main/othervm --enable-preview TryCatch */ public class TryCatch { public static void main(String[] args) { { int val = 3; --- 23,34 ---- /** * @test * @bug 8214114 * @summary Verify try-catch inside a switch expression works properly. ! * @compile TryCatch.java ! * @run main TryCatch */ public class TryCatch { public static void main(String[] args) { { int val = 3;
< prev index next >