HHH-9605 - Query on an enum collection fails - minor changes
This commit is contained in:
parent
001b841934
commit
8a7bc2e7c1
|
@ -68,10 +68,10 @@ public class InLogicOperatorNode extends BinaryLogicOperatorNode implements Bina
|
||||||
}
|
}
|
||||||
|
|
||||||
// fix for HHH-9605
|
// fix for HHH-9605
|
||||||
if ( CollectionFunction.class.isAssignableFrom( inListChild.getClass() ) &&
|
if ( CollectionFunction.class.isInstance( inListChild )
|
||||||
ExpectedTypeAwareNode.class.isAssignableFrom( lhs.getClass() ) ) {
|
&& ExpectedTypeAwareNode.class.isInstance( lhs ) ) {
|
||||||
lhsType = ((CollectionFunction) inListChild).getDataType();
|
final Type rhsType = ((CollectionFunction) inListChild).getDataType();
|
||||||
((ExpectedTypeAwareNode) lhs).setExpectedType( lhsType );
|
((ExpectedTypeAwareNode) lhs).setExpectedType( rhsType );
|
||||||
}
|
}
|
||||||
|
|
||||||
inListChild = inListChild.getNextSibling();
|
inListChild = inListChild.getNextSibling();
|
||||||
|
|
Loading…
Reference in New Issue