Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createConstructorFromCall/afterDisjunction.java
Bart van Helvert a4bcded0bf [java-intentions] IDEA-304321 Fix "Create constructor" preview
GitOrigin-RevId: 3a473c492e709a280d8a06e7364a2af05babf37f
2022-10-31 13:46:49 +00:00

22 lines
384 B
Java

// "Create constructor" "true-preview"
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></selection>
}
}
class Ex1 extends Exception {}
class Ex2 extends Exception {}