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 darcy
549N/A * @compile/fail/ref=Neg01.out -XDrawDiagnostics Neg01.java
549N/A * @compile -source 6 -XDrawDiagnostics Neg01.java
549N/A *
549N/A */
549N/A
549N/Aclass Neg01 {
549N/A static class A extends Exception {}
549N/A static class B1 extends A {}
549N/A static class B2 extends A {}
549N/A
549N/A class Test {
549N/A void m() throws A {
549N/A try {
549N/A throw new B1();
549N/A } catch (final A ex1) {
549N/A try {
549N/A throw ex1; // used to throw A, now throws B1!
549N/A } catch (B2 ex2) { }//unreachable
549N/A }
549N/A }
549N/A }
549N/A}