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

TestScript class used for offline parsing and type checking does not recognise <clinit> as trigger method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.3
    • 1.0.2
    • Tools
    • None

    Description

      The TestScript class used by bin/bytemancheck.sh to parse and type check rules offline does not accept <clinit> as the trigger method name (i.e. which include METHOD <clinit>). By contrast, the Byteman agent will correctly match this against static class initialiser code and inject side-effects during class initialisation.

      It is not possible for the TestScript class to actually acess this code since it can only employ reflection and class initialiser methods are not available via the relfection API. However, TestClass should at least fail gracefully on rules which specify <clinit> as the trigger method name.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: