precise rethrow: ensure unreachable catch sections do not participate in precise rethrow

This commit is contained in:
Anna.Kozlova
2017-03-08 12:37:00 +01:00
parent 0fa0b96dc6
commit 7f4059541a
2 changed files with 21 additions and 4 deletions
@@ -250,4 +250,16 @@ class C {
if (i == 1) throw new E1();
if (i == 2) throw new E2();
}
private void m15() throws E1 {
try {
throw new E1();
}
catch (final E1 e1) {
throw e1;
}
catch (final E e) {
throw e;
}
}
}