HHH-9605 - Query on an enum collection fails - minor changes

This commit is contained in:
Steve Ebersole 2015-03-20 15:38:16 -05:00
parent 001b841934
commit 8a7bc2e7c1
1 changed files with 4 additions and 4 deletions

View File

@ -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();