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

Dtest library does not know to work with interfaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.2.0
    • 2.1.4.1
    • Contrib
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: