mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Otherwise, wrong class may be resolved in incomplete project model AnonymousHashCode.java changed, because java.lang.Object import was unresolved (no JDK configured) and we now refuse to resolve to same-package class if there's a suitable explicit import beforeHierarchy.java/afterHierarchy.java changed, because the import was incorrect, and it prevented importing implicit java.lang.Exception predicates2.java changed: incorrect import removed (now prevents importing java.lang.String) MoveInnerProcessor changes: import refs should be rebound first; otherwise they disallow to rebind normal refs SpringDataMongoDbQueryCompletionTest changed: erroneous import removed GitOrigin-RevId: f380409c445306bb9b8aceb5fe4dce1351511283
13 lines
263 B
Java
13 lines
263 B
Java
// "Replace 'C' with more generic 'A'" "true-preview"
|
|
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) {
|
|
}
|
|
}
|
|
} |