549N/A/*
549N/A * @test /nodynamiccopyright/
549N/A * @bug 6943289
549N/A *
549N/A * @summary Project Coin: Improved Exception Handling for Java (aka 'multicatch')
549N/A * @author mcimadamore
549N/A * @compile/fail/ref=Neg02.out -XDrawDiagnostics Neg02.java
549N/A *
549N/A */
549N/A
549N/Aclass Neg02 {
549N/A static class A extends Exception {}
549N/A static class B extends Exception {}
549N/A
549N/A void m() {
549N/A try {
549N/A if (true) {
549N/A throw new A();
549N/A }
549N/A else {
549N/A throw new B();
549N/A }
734N/A } catch (final A | B ex) {
734N/A ex = new B();
734N/A }
549N/A }
549N/A}