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

A message is logged about dynamically loading the class enhancer even though I'm using the -javaagent

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0-M3
    • Component/s: kernel
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When using the -javaagent enhancer, I see a message about OpenJPA dynamically loading the class enhancer.

      INFO [main] openjpa.Runtime - OpenJPA dynamically loaded the class enhancer. Any classes that were not enhanced at build time will be enhanced when the are loaded by the JVM.

        Issue Links

          Activity

          Hide
          curtisr7 Rick Curtis added a comment -

          Changed the logic in PCEnhancerAgent so that loadDynamicAgent will return true ONLY when the enhancer is dynamically invoked. This will ensure that the "OpenJPA dynamically loaded the class..." message is logged appropriately.

          Show
          curtisr7 Rick Curtis added a comment - Changed the logic in PCEnhancerAgent so that loadDynamicAgent will return true ONLY when the enhancer is dynamically invoked. This will ensure that the "OpenJPA dynamically loaded the class..." message is logged appropriately.
          Hide
          curtisr7 Rick Curtis added a comment -

          Refactored as part of testing for OPENJPA-1119.

          Show
          curtisr7 Rick Curtis added a comment - Refactored as part of testing for OPENJPA-1119 .
          Hide
          mikedd Michael Dick added a comment -

          Thanks for the patch Rick.

          Show
          mikedd Michael Dick added a comment - Thanks for the patch Rick.

            People

            • Assignee:
              curtisr7 Rick Curtis
              Reporter:
              curtisr7 Rick Curtis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development