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

Dtest library does not know to work with interfaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.0
    • 2.1.4.1
    • Contrib
    • None

      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

              rhn-engineering-adinn Andrew Dinn
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: