mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
16 lines
297 B
Java
16 lines
297 B
Java
// "Add exception to existing catch clause" "true"
|
|
import java.io.IOException;
|
|
|
|
class A extends Exception {}
|
|
class B extends A {}
|
|
class C extends A {}
|
|
|
|
class Test {
|
|
public static void main(String[] args) {
|
|
try {
|
|
throw new A<caret>();
|
|
} catch (B e) {
|
|
} catch (C e) {
|
|
}
|
|
}
|
|
} |