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

ClassFileTransformer modifies bytecode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.0, 2.2.1
    • Fix Version/s: None
    • Component/s: Enhance
    • Labels:
      None

      Description

      When using the JPA ClassFileTransformer from a javaagent the expected workflow is to simply convert in memory original class byte[] to an enhanced byte[].

      However since the code is shared with ant task, mvn plugin and main() enhancer it also updates the file physically.

      That's a pain for load time weaving.

      Could it be skipped when using the ClassFileTransformer?

      sounds like a bug for me, wdyt?

        Attachments

          Activity

            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: