mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
16 lines
290 B
Java
16 lines
290 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();
|
|
} catch (A e) {
|
|
} catch (C e) {
|
|
}
|
|
}
|
|
} |