1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/multicatch/Pos06.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,27 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6993963 1.7 + * 1.8 + * @summary Project Coin: Use precise exception analysis for effectively final catch parameters 1.9 + * @author mcimadamore 1.10 + * @compile Pos06.java 1.11 + * 1.12 + */ 1.13 + 1.14 +class Pos06 { 1.15 + static class A extends Exception {} 1.16 + static class B extends Exception {} 1.17 + 1.18 + void m() { 1.19 + try { 1.20 + if (true) { 1.21 + throw new A(); 1.22 + } 1.23 + else { 1.24 + throw new B(); 1.25 + } 1.26 + } catch (A | B ex) { 1.27 + System.out.println(ex); 1.28 + } 1.29 + } 1.30 +}