precise rethrow: runtime exception special case for generic declared type only (IDEA-180035)

This commit is contained in:
Anna.Kozlova
2017-10-10 18:17:29 +02:00
parent 6866131d04
commit 79b362e643
3 changed files with 26 additions and 1 deletions
@@ -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 { }
}