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

HalfBinary constraint with || And && causes StackOverflowError

    XMLWordPrintable

Details

    • 2021 Week 31-33 (from Aug 2)
    • 2
    • NEW
    • NEW

    Description

      Constraint like this

      $p : Person(age < 15 || > 20 && < 30)
      

      Causes a StackOverflowError

      java.lang.StackOverflowError
      	at java.base/java.util.LinkedList.get(LinkedList.java:480)
      	at com.github.javaparser.ast.Node.setParentNode(Node.java:388)
      	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:367)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:220)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:210)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:221)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:210)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:221)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:210)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:221)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:210)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:221)
      	at org.drools.modelcompiler.builder.generator.expressiontyper.ExpressionTyper.toTypedExpressionRec(ExpressionTyper.java:210)
              ...
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: