Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2894

All boolean expressions are not predicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2, 3.2.0
    • None
    • criteria
    • 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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            pveselov Pawel Veselov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: