IDEA-140043 Predefined Variables in Code Template "Catch Statement Body" not available

This commit is contained in:
Dmitry Avdeev
2015-05-13 16:01:02 +03:00
parent 6275084617
commit 632af5206e
4 changed files with 50 additions and 1 deletions
@@ -0,0 +1,14 @@
class Test {
public static void main(String[] args){
<selection>I i = ExceptionTest::foo;</selection>
}
class Ex extends Exception {}
static void foo() throws Ex {}
interface I {
void f();
}
}
@@ -0,0 +1,19 @@
class Test {
public static void main(String[] args){
try {
I i = ExceptionTest::foo;
} catch (Exception e) {
// $
e.printStackTrace();
}
}
class Ex extends Exception {}
static void foo() throws Ex {}
interface I {
void f();
}
}