18 throw new A();
19 }
20 else {
21 throw new B();
22 }
23 } catch (A | B ex) { }
23 } catch (final A | B ex) {
24 ex = new B();
25 }
24 }
26 }
27 }