blob: 5c02bb8a41f2a1b4aa7cffa9ea2f869b7e95cc18 [file] [log] [blame]
class Test {
static class E extends Exception { }
static interface I { void i(); }
static class E1 extends E implements I { public void i() { } }
static class E2 extends E implements I { public void i() { } }
void m(boolean f) {
try {
if (f)
throw new E1();
else
throw new E2();
} catch (E2 | E1 e) {
e.printStackTrace();
e.i();
}
}
}