mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
IDEA-90606 Smart completion misses exception from try-with-resources
This commit is contained in:
+11
@@ -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>) {}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import java.io.FileInputStream;
|
||||
|
||||
class Test {
|
||||
void foo() {
|
||||
try {
|
||||
try (FileInputStream in = new FileInputStream("adsf")) {
|
||||
}
|
||||
} catch (IO<caret>) {}
|
||||
}
|
||||
}
|
||||
+2
@@ -60,6 +60,8 @@ public class SmartType17CompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
public void testTryWithResourcesNoSemicolon() { doTest(); }
|
||||
|
||||
public void testTryWithResourcesThrowsException() { doTest(); }
|
||||
|
||||
public void testDiamondPresentation() {
|
||||
configureByFile("/" + getTestName(false) + ".java");
|
||||
LookupElementPresentation presentation = new LookupElementPresentation();
|
||||
|
||||
Reference in New Issue
Block a user