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

Mention of Transformer class in Main is causing some classloader weirdness

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0
    • 1.1.1
    • None
    • None

      The agent premain class currently calls Transformer.isVerbose() in order to decide whether to print trace. This appears to be causing some weird classloading behaviour when running the JBossTS tests. The result is that the transformer sometimes fails to get installed correctly. In order to avoid this Main should only link to Transformer dynamically by invoking loadClass, passing the relevant classname string, after it has updated the boot and system classpaths. It should not mention nor include any other classes from the byteman jar.

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: