persistence@glassfish.java.net

code review for issue 136

From: jie leng <jie.leng_at_Sun.COM>
Date: Thu, 23 Mar 2006 18:10:27 -0800

Hi, Michael, Tom,

Attached is the fix for issue 136 - JPQL validation: Parser not catching
invalid expression type with IN expression.

According to spec,
in_expression ::= state_field_path_expression [NOT] IN (in_item {,
in_item}* | subquery)
The state_field_path_expression must have a string, numeric or enum value.
The in_item and the result of subquery must be like the same abstrct
schema type of the state_field_path_expression.

Added two validation checks in InNode.java.

Please review the change.

Thanks.

Jielin