Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 7.35.0.Final
    • Fix Version/s: None
    • Component/s: core engine
    • Labels:
      None
    • Sprint:
      2020 Week 13-15 (from Mar 23)
    • Steps to Reproduce:
      Hide

      run:

      mvn clean test
      

      on attached reproducer.

      Show
      run: mvn clean test on attached reproducer.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Executable model rule compilation fails when trying to build a pattern using constraint grouping.

      Example of DRL that fails to compile:

          rule "TestBusiness"
          when $p : Pojo(departuretimedayofweek (== 1 || == 2 || == 7) )
          then
          end
      

      Error:

          java.lang.StackOverflowError
          	at java.base/java.util.LinkedList.unlink(LinkedList.java:215)
          	at java.base/java.util.LinkedList.remove(LinkedList.java:530)
          	at com.github.javaparser.ast.Node.setParentNode(Node.java:389)
          	at com.github.javaparser.ast.Node.setAsParentNodeOf(Node.java:403)
          	at com.github.javaparser.ast.expr.BinaryExpr.setLeft(BinaryExpr.java:174)
          	at com.github.javaparser.ast.expr.BinaryExpr.<init>(BinaryExpr.java:131)
          	at com.github.javaparser.ast.expr.BinaryExpr.<init>(BinaryExpr.java:122)
          	at org.drools.modelcompiler.builder.generator.DrlxParseUtil.trasformHalfBinaryToBinary(DrlxParseUtil.java:347)
          	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:194)
          	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:185)
          	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:195)
          	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:185)
           ...
      

      The example works fine when compiling without executable model.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                mcasalino Matteo Casalino
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: