JPQL arithmetic operators are left associative

Operators of equal precedence in a JPQL arithmetic expression are now evaluated from left to right, as required by section 4.8.1 of the specification. Previous releases parsed them right associatively, so a - b - c was evaluated as a - (b - c) and a / b * c as a / (b * c). For example, SELECT c.age - 10 - 20 FROM CompUser c returned 29 for an age of 19 and now returns -11.

Relative precedence of the additive and the multiplicative operators is unchanged. Queries that relied on the previous grouping have to be parenthesized explicitly. No compatibility option exists.