mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-13 04:46:26 +07:00
precise rethrow: runtime exception special case for generic declared type only (IDEA-180035)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
class MyTest {
|
||||
|
||||
public void foo() {
|
||||
try {
|
||||
bar();
|
||||
}
|
||||
catch (FileNotFoundException e) {
|
||||
<error descr="Unhandled exception: java.io.FileNotFoundException">throw e;</error>
|
||||
}
|
||||
catch (IOException ignored) { }
|
||||
}
|
||||
|
||||
private void bar() throws IOException, RuntimeException { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user