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

Boolean comparisons give incorrect results

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.1.3
    • Component/s: None
    • Labels:
      None

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                adinn Andrew Dinn
                Reporter:
                adinn Andrew Dinn
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: