mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
IDEA-103576 (correct processing of unhandled multi-catch exceptions)
This commit is contained in:
+15
@@ -227,4 +227,19 @@ class C {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
void m14() {
|
||||
try {
|
||||
n14(42);
|
||||
}
|
||||
catch (E1 | E2 e) {
|
||||
e.printStackTrace();
|
||||
<error descr="Unhandled exceptions: C.E1, C.E2">throw e;</error>
|
||||
}
|
||||
}
|
||||
|
||||
private void n14(int i) throws E1, E2, RuntimeException {
|
||||
if (i == 1) throw new E1();
|
||||
if (i == 2) throw new E2();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user