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

Rule inheritance fails when using or pattern binding

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.0.1.Final
    • Fix Version/s: 6.2.0.Beta1
    • Component/s: None
    • Environment:

      Windows 7 VM. Running drools using a JUnit driver

    • Steps to Reproduce:
      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.

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                code4dc Eugene Shvartsman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: