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

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

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.4
    • Component/s: Trigger Injection
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                adinn Andrew Dinn
                Reporter:
                adinn Andrew Dinn
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: