mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-140043 Predefined Variables in Code Template "Catch Statement Body" not available
This commit is contained in:
+14
@@ -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();
|
||||
}
|
||||
}
|
||||
+19
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user