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=Neg03.out -XDrawDiagnostics Neg03.java
549N/A *
549N/A */
549N/A
549N/Aclass Neg03 {
549N/A
734N/A static class A extends Exception { public void m() {}; public Object f;}
734N/A static class B1 extends A {}
734N/A static class B2 extends A {}
734N/A
734N/A void m() throws B1, B2 {
549N/A try {
549N/A if (true) {
734N/A throw new B1();
549N/A }
549N/A else {
734N/A throw new B2();
549N/A }
734N/A } catch (Exception ex) {
734N/A ex = new B2(); //effectively final analysis disabled!
734N/A throw ex;
549N/A }
549N/A }
549N/A}