mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
precise rethrow: ensure unreachable catch sections do not participate in precise rethrow
This commit is contained in:
+12
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user