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

Boolean comparisons give incorrect results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.3
    • None
    • None
    • None

      Comparisons of boolean (or even Boolean) expressions fail to return the right result. For example, this rule fires even when $! is true

      RULE check return result is true
      CLASS MyClass
      METHOD myMethod(int)
      AFTER CALL MyClass.myOddMethod 2
      IF $! != true
      DO THROW new RuntimeException("expected result true!")
      ENDRULE

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

                Created:
                Updated:
                Resolved: