/*
* @test /nodynamiccopyright/
* @bug 6943289
*
* @summary Project Coin: Improved Exception Handling for Java (aka 'multicatch')
* @author mcimadamore
* @compile/fail/ref=Neg03.out -XDrawDiagnostics Neg03.java
*
*/
class Neg03 {
static class B1 extends A {}
static class B2 extends A {}
try {
if (true) {
throw new B1();
}
else {
throw new B2();
}
throw ex;
}
}
}