mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
Fixes IDEA-320698 False positive error highlighting of an expression with an union type in a throw statement GitOrigin-RevId: 7120053a75edbcb8717657b9791d1a310a581c32
14 lines
295 B
Java
14 lines
295 B
Java
class SomeClass {
|
|
static class Ex1 extends Exception {}
|
|
static class Ex2 extends Exception {}
|
|
|
|
native void run() throws Ex1, Ex2;
|
|
|
|
void test() throws Exception {
|
|
try {
|
|
run();
|
|
} catch (Ex1 | Ex2 e) {
|
|
throw e.getCause() != null ? new RuntimeException() : e;
|
|
}
|
|
}
|
|
} |