When HHH-7985 (NullPointer with JPA Criteria) was fixed, the return types for the org.hibernate.criterion.Restrictions methods Restrictions.ne and Restrictions.eq were changed from SimpleExpression to Criterion. See the git change log here:
https://github.com/hibernate/hibernate-orm/commit/70454c9168129620089be47db0524652a4bd8c1e
Replacing the 4.1.9 build for the 4.1.10 build causes the following runtime exception when either of these Restrictions methods are invoked:
and for Restrictions.ne:
As the version number was effectively upgraded by only a minor point release, it could be reasonably expected that this type of change would not have occurred. Would it be possible to confirm that this api breaking change was expected as part of this release and was the only possible solution to the HHH-7985 issue.
|