Pawel Veselov created OPENJPA-2894: -------------------------------------- Summary: All boolean expressions are not predicates Key: OPENJPA-2894 URL: https://issues.apache.org/jira/browse/OPENJPA-2894 Project: OpenJPA Issue Type: Bug Components: criteria Affects Versions: 3.2.0, 3.1.2 Reporter: Pawel Veselov
>From {{PredicateImpl}}: {code:java} public PredicateImpl add(Expression<Boolean> s) { synchronized (_exps) { _exps.add((Predicate)s); // all boolean expressions are Predicate } return this; } {code} However, a function that returns a boolean is an {{Expression<Boolean>}}, but is not a {{Predicate}} -- This message was sent by Atlassian Jira (v8.20.1#820001)