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=Neg04.out -XDrawDiagnostics Neg04.java
549N/A *
549N/A */
549N/A
549N/Aclass Neg04 {
549N/A static class A extends Exception {}
549N/A static class B extends Exception {}
549N/A
549N/A void test() throws B {
549N/A try {
549N/A if (true) {
549N/A throw new A();
549N/A } else if (false) {
549N/A throw new B();
549N/A } else {
549N/A throw (Throwable)new Exception();
549N/A }
549N/A }
549N/A catch (A e) {}
549N/A catch (final Exception e) {
549N/A throw e;
549N/A }
549N/A catch (Throwable t) {}
549N/A }
549N/A}