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

TestConcurrentMap error with Java 8

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • None
    • 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

      One more test failure while running with Java 8. Since Java 8 introduced some new methods on the Map interface, this is probably related. We are getting a VerifyError related to the keySet signature:

      Tests in error:
      testConcurrentMap001(org.apache.openjpa.persistence.relations.TestConcurrentMap)

      <error message="(class: org/apache/openjpa/util/java$util$concurrent$ConcurrentHashMap$4$proxy, method: keySet signature: ()Ljava/util/concurrent/ConcurrentHashMap$KeySetView Wrong return type in function" type="java.lang.VerifyError">java.lang.VerifyError: (class: org/apache/openjpa/util/java$util$concurrent$ConcurrentHashMap$4$proxy, method: keySet signature: ()Ljava/util/concurrent/ConcurrentHashMap$KeySetView Wrong return type in function
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:340)
      at org.apache.openjpa.util.GeneratedClasses.loadBCClass(GeneratedClasses.java:68)

      Attachments

        1. OPENJPA-2492.patch
          4 kB
          Romain Manni-Bucau

        Issue Links

          Activity

            People

              kwsutter Kevin W. Sutter
              kwsutter Kevin W. Sutter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: