IDEA-90606 Smart completion misses exception from try-with-resources

This commit is contained in:
peter
2012-09-06 17:36:30 +02:00
parent 570dcc898d
commit baecbfd6c8
4 changed files with 77 additions and 45 deletions
@@ -0,0 +1,11 @@
import java.io.FileInputStream;
import java.io.IOException;
class Test {
void foo() {
try {
try (FileInputStream in = new FileInputStream("adsf")) {
}
} catch (IOException <caret>) {}
}
}
@@ -0,0 +1,10 @@
import java.io.FileInputStream;
class Test {
void foo() {
try {
try (FileInputStream in = new FileInputStream("adsf")) {
}
} catch (IO<caret>) {}
}
}