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

Injected code casts to wrong type when retrieving updated value for local variable

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.1.4
    • 2.1.3
    • Trigger Injection
    • None

      Byteman uses an Object[] to pass local/parameter values into the rule execution engine and uses the same array to retrieve values updated by the rule code which it expected to write back into the trigger method's local var slots. Obviously returned values are retrieved from the array with Object type. If the local var slot does not hold an Object then the injected code needs to include a checkcast and, in the case that the slot stores a primitive, unboxing code. It seems that in some cases the wrong type is used for the checkcast leading to a VerifyError.

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

                Created:
                Updated:
                Resolved: