734N/A/*
734N/A * @test /nodynamiccopyright/
734N/A * @bug 6943289
734N/A *
734N/A * @summary Project Coin: Improved Exception Handling for Java (aka 'multicatch')
734N/A * @author darcy
734N/A * @compile/fail/ref=Neg01eff_final.out -XDrawDiagnostics Neg01eff_final.java
734N/A * @compile -source 6 -XDrawDiagnostics Neg01eff_final.java
734N/A *
734N/A */
734N/A
734N/Aclass Neg01eff_final {
734N/A static class A extends Exception {}
734N/A static class B1 extends A {}
734N/A static class B2 extends A {}
734N/A
734N/A class Test {
734N/A void m() throws A {
734N/A try {
734N/A throw new B1();
734N/A } catch (A ex1) {
734N/A try {
734N/A throw ex1; // used to throw A, now throws B1!
734N/A } catch (B2 ex2) { }//unreachable
734N/A }
734N/A }
734N/A }
734N/A}