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

Rule inheritance fails when using or pattern binding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.Beta1
    • 6.0.1.Final
    • None
    • Hide

      Import the attached maven project and after installing it run the ExtendsErrorTest.java file.

      Show
      Import the attached maven project and after installing it run the ExtendsErrorTest.java file.

      I've found a certain combination of rules (when using inheritance) that causes drools to throw the following exception: http://pastebin.com/xxq5ZtAC

      The rules that cause this exception to occur can be found here: http://pastebin.com/wM6rWY8L

      I've simplified my original rules down to the lowest level of detail that still throws the exception. The exception is no longer thrown if I:
      1. Don't use rule inheritance
      2. Don't have an or statement
      3. Don't reference an LHS defined variable in the RHS of ruleB

            mfusco@redhat.com Mario Fusco
            code4dc@gmail.com Eugene Shvartsman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: