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

bmcheck throws Null Pointer Exception when overriding AT EXIT rule references $!

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0
    • 1.6.0
    • Tools
    • None

    Description

      Using the offline type checker program bmcheck to typecheck an overriding AT EXIT rule causes an NPE if the rule employs the special $! to refer to the return value.

      The following rule is an example of one which failed to typecheck.

      RULE dump pattern replaced text
      CLASS ^TextLineProcessor
      METHOD transform(String)
      AT EXIT
      IF NOT $1.equals($!)
      DO System.out.println(" transform(" + $1 + " -> " +$! +")")
      ENDRULE

      It does appear to typecheck correctly when the agent processes the rule.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: