EA-39209 - IOE: PsiJavaParserFacadeImpl.createParameterFromText

This commit is contained in:
anna
2012-11-16 16:13:29 +01:00
parent 6ccb0a2e25
commit 53ef2bccfb
3 changed files with 46 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
// "Create Constructor" "true"
class Test {
void foo() throws Ex1 {}
void bar() throws Ex2 {}
public void t() {
try {
foo();
bar();
}
catch (Ex1 | Ex2 e) {
new A(e);
}
}
}
class A {
public A(Exception e) {
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
}
}
class Ex1 extends Exception {}
class Ex2 extends Exception {}

View File

@@ -0,0 +1,19 @@
// "Create Constructor" "true"
class Test {
void foo() throws Ex1 {}
void bar() throws Ex2 {}
public void t() {
try {
foo();
bar();
}
catch (Ex1 | Ex2 e) {
new A(<caret>e);
}
}
}
class A {
}
class Ex1 extends Exception {}
class Ex2 extends Exception {}