Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.2, 3.2.0
-
None
-
None
Description
From PredicateImpl:
public PredicateImpl add(Expression<Boolean> s) { synchronized (_exps) { _exps.add((Predicate)s); // all boolean expressions are Predicate } return this; }
However, a function that returns a boolean is an Expression<Boolean>, but is not a Predicate
Test case: https://github.com/veselov/Standalone-JPA-Test-Demo/tree/OPENJPA-2894 (run mvn package on JDK 1.8)