Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-398

Check the entry points class loader before using the system class loader

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Optional Optional
    • None
    • None
    • None
    • None

      The enhancement for MODULES-393 introduced a way to load JBoss Modules as an agent, the it would invoke an agents premain method after a few things are configuration. For example the log manager and the security manager.

      While doing some testing I noticed that the Byteman agent uses the system class loader to load the transformer class. I'll acknowledge too that how modules is handling agents passed as module arguments is not quite to the spec it may be helpful if the Byteman agent could first check the entry points class loader and if null then use the system class loader.

      I've created this as optional because I'm not too familiar with agents so maybe this is bad practice. Testing on WildFly showed this did work as expected. However I only ran a few tests not the full test suite with the changes.

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: