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
if ( CollectionFunction.class.isAssignableFrom( inListChild.getClass() ) &&
ExpectedTypeAwareNode.class.isAssignableFrom( lhs.getClass() ) ) {
lhsType = ((CollectionFunction) inListChild).getDataType();
((ExpectedTypeAwareNode) lhs).setExpectedType( lhsType );
if ( CollectionFunction.class.isInstance( inListChild )
&& ExpectedTypeAwareNode.class.isInstance( lhs ) ) {
final Type rhsType = ((CollectionFunction) inListChild).getDataType();
((ExpectedTypeAwareNode) lhs).setExpectedType( rhsType );
}
inListChild = inListChild.getNextSibling();