-
Bug
-
Resolution: Done
-
Major
-
7.58.0.Final, 7.59.0.Final
-
None
-
2021 Week 37-39 (from Sep 13), 2022 Week 17-19 (from Apr 25)
-
2
-
-
NEW
-
NEW
We are in the process of migrating our environment to the executable model. This is one issue that worked previously but won't work when creating the executable model.
We are currently using drools 7.58.0 but the error also appears in 7.59.0
Given a negative BigDecimal literal when defined in an *.drl file with mvel dialect
package org.example; dialect "mvel" global Helper helper rule "rule 1" when then helper.method(-4B); insert("run"); end
When building the executable model
Results in the following exception (stacktrace)
Exception in thread "main" java.lang.ClassCastException: class com.github.javaparser.ast.visitor.CloneVisitor cannot be cast to class org.drools.mvel.parser.ast.visitor.DrlGenericVisitor (com.github.javaparser.ast.visitor.CloneVisitor and org.drools.mvel.parser.ast.visitor.DrlGenericVisitor are in unnamed module of loader 'app') at org.drools.mvel.parser.ast.expr.BigDecimalLiteralExpr.accept(BigDecimalLiteralExpr.java:65) at com.github.javaparser.ast.visitor.CloneVisitor.cloneNode(CloneVisitor.java:1007) at com.github.javaparser.ast.visitor.CloneVisitor.visit(CloneVisitor.java:621) at com.github.javaparser.ast.visitor.CloneVisitor.visit(CloneVisitor.java:38) at com.github.javaparser.ast.expr.UnaryExpr.accept(UnaryExpr.java:112) at com.github.javaparser.ast.visitor.CloneVisitor.visit(CloneVisitor.java:949) [...]