Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-585

inconsistent behavior of & bitwise operator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.CR1
    • 5.6.0.Final
    • None

      inconsistent behavior of & bitwise operator

      after writing a rule given below

      no-loop

      when
      f: Person(
      ((101 & age) != 0)
      )
      then
      f.setFound(true);
      end

      after calling this several times say 100 it gives inconsistent result. Similar behavior is observed if we place bitwise '&' with bitwise '|'

              mfusco@redhat.com Mario Fusco
              rahsingh_jira Rahul Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: