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

Dtest library does not know to work with interfaces

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.4.1
    • Fix Version/s: 2.2.0
    • Component/s: Contrib
    • Labels:
      None

      Description

      Instrumentator.injectOnCall does not work with interfaces. It can work just with classes.
      The call like this does not work and causing that rule is not bound
      instrumentor.injectOnCall(SomeInterface.class, "someMethod", "traceln(\"someMethod on interface called\")");

      The reason is that the rule is constructed with word "CLASS" and there is no way how to say that the injection should be provided on INTERFACE.

      Attempt for fix is here
      https://github.com/bytemanproject/byteman/pull/23

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                adinn Andrew Dinn
                Reporter:
                ochaloup Ondrej Chaloupka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: