mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
TypeConstraint#union: fixed possible inconvertibility with inconsistent hierarchy
Fixes EA-123372 - NPE: AbstractStreamEx.lambda$foldLeft$
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import java.util.*;
|
||||
|
||||
class Foo {
|
||||
final class X {}
|
||||
class Y extends X {}
|
||||
class YY extends X {}
|
||||
interface Z {};
|
||||
|
||||
void test(Object o) {
|
||||
if((o instanceof Y && o instanceof Z) || (o instanceof YY && o instanceof Z)) {
|
||||
o.hashCode()<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user