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

15 lines
287 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 new A();
} catch (B e) {
} catch (A e) {
}
}
}