jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 6993963
4*
5* @summary Project Coin: Use precise exception analysis for effectively final catch parameters
6* @author mcimadamore
7* @compile Pos06.java
8*
9*/
10
11class Pos06 {
12static class A extends Exception {}
13static class B extends Exception {}
14
15void m() {
16try {
17if (true) {
18throw new A();
19}
20else {
21throw new B();
22}
23} catch (A | B ex) {
24System.out.println(ex);
25}
26}
27}
28