Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addExceptionToExistingCatch/beforeHierarchy.java

15 lines
294 B
Java

// "Add exception to existing catch clause" "true"
import java.io.Exception;
class A extends Exception {}
class B extends A {}
class C extends A {}
class Test {
public static void main(String[] args) {
try {
throw<caret> new A();
} catch (B e) {
} catch (C e) {
}
}
}