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

Dynamically loaded <init> or <clinit> rule may not be installed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0
    • 1.6.0
    • Trigger Injection
    • None

    Description

      When rules are dynamically loaded they are collected in a temporary ScriptRepository and checked one by one to see if they apply to any existing loaded classes. Any classes which match are sceduled for retransformation. The ScriptRepository code has to special case <init> and <clinit>rules as they don't actually appear under this name. Unfortunatelt, the current check compares the method name in the loaded script against the relevant literal string values using an == test. So, sometimes this comparison fails and the agent does not schedule the target class for a retransform.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: