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

isEnhanced doesn't support java 8 bytecode

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.1
    • Component/s: None
    • Labels:
      None

      Description

      AVERTISSEMENT - An exception was thrown while attempting to perform class file transformation on "com.github.rmannibucau.jwp.jpa.User":
      java.lang.ArrayIndexOutOfBoundsException: 28263
      	at serp.bytecode.lowlevel.ConstantPoolTable.get(ConstantPoolTable.java:139)
      	at org.apache.openjpa.enhance.PCClassFileTransformer.isEnhanced(PCClassFileTransformer.java:240)
      	at org.apache.openjpa.enhance.PCClassFileTransformer.needsEnhance(PCClassFileTransformer.java:195)
      	at org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:140)
      	at org.apache.openjpa.enhance.PCClassFileTransformer.transform(PCClassFileTransformer.java:127)
      	at org.apache.openjpa.persistence.PersistenceProviderImpl$ClassTransformerImpl.transform(PersistenceProviderImpl.java:292)
      	at org.apache.openejb.persistence.PersistenceUnitInfoImpl$PersistenceClassFileTransformer.transform(PersistenceUnitInfoImpl.java:370)
      	at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
      	at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      
      

        Activity

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

        Commit 1727520 from Romain Manni-Bucau in branch 'openjpa/trunk'
        [ https://svn.apache.org/r1727520 ]

        OPENJPA-2626 support of java 8 bytecode test for isEnhanced - avoid to have logs full of exception/warnings when it actually works cause it is already enahnced at build time

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1727520 from Romain Manni-Bucau in branch 'openjpa/trunk' [ https://svn.apache.org/r1727520 ] OPENJPA-2626 support of java 8 bytecode test for isEnhanced - avoid to have logs full of exception/warnings when it actually works cause it is already enahnced at build time
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1730309 from Mark Struberg in branch 'openjpa/trunk'
        [ https://svn.apache.org/r1730309 ]

        OPENJPA-2626 remove unused import (which is an ugly internal sun class and doesn't exist in java7)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1730309 from Mark Struberg in branch 'openjpa/trunk' [ https://svn.apache.org/r1730309 ] OPENJPA-2626 remove unused import (which is an ugly internal sun class and doesn't exist in java7)

          People

          • Assignee:
            Unassigned
            Reporter:
            romain.manni-bucau Romain Manni-Bucau
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development