Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2386 Support for JAVA 8
  3. OPENJPA-2491

AssertionFailedError with Java 8 and TestInExpressionParamaterBinding

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: jdbc, query
    • Labels:
      None
    • Environment:
      Java 8
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b132)
      Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

      Description

      When running with Java 8, we're experiencing the following test error.

      Failed tests: testWithCollectionParamOfDifferentSizeNoParentheses(org.apache.openjpa.persistence.jdbc.sqlcache.TestInExpressionParamaterBinding)

      Looked at the surefire report and it's a simple test assertion failure. We've had some recent issues with parameter bindings, but this only fails with Java 8...

      1. OPENJPA-2491.patch
        0.7 kB
        Romain Manni-Bucau

        Issue Links

          Activity

          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1589183 from Kevin Sutter in branch 'openjpa/trunk'
          [ https://svn.apache.org/r1589183 ]

          OPENJPA-2491. One other minor spelling update for a testcase name...

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1589183 from Kevin Sutter in branch 'openjpa/trunk' [ https://svn.apache.org/r1589183 ] OPENJPA-2491 . One other minor spelling update for a testcase name...
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1588977 from kwsutter@apache.org in branch 'openjpa/trunk'
          [ https://svn.apache.org/r1588977 ]

          OPENJPA-2491. Variation of the patch as provided by Romain Manni-Bucau. Besides clearing the cache, I also corrected the spelling of "parameter" in this testcase name and another related testcase.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1588977 from kwsutter@apache.org in branch 'openjpa/trunk' [ https://svn.apache.org/r1588977 ] OPENJPA-2491 . Variation of the patch as provided by Romain Manni-Bucau. Besides clearing the cache, I also corrected the spelling of "parameter" in this testcase name and another related testcase.
          Hide
          romain.manni-bucau Romain Manni-Bucau added a comment -

          patch cleaning cache between two tests

          Show
          romain.manni-bucau Romain Manni-Bucau added a comment - patch cleaning cache between two tests
          Hide
          romain.manni-bucau Romain Manni-Bucau added a comment -

          this is a side effect of testWithSingleParamNoParentheses (order of method is no more deterministic since java 7)

          if you ensure the cache is clean before each test or you comment this method it doesn't fail even in java 8

          Show
          romain.manni-bucau Romain Manni-Bucau added a comment - this is a side effect of testWithSingleParamNoParentheses (order of method is no more deterministic since java 7) if you ensure the cache is clean before each test or you comment this method it doesn't fail even in java 8

            People

            • Assignee:
              kwsutter Kevin Sutter
              Reporter:
              kwsutter Kevin Sutter
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development