tkobayas opened a new issue, #6249:
URL: https://github.com/apache/incubator-kie-drools/issues/6249

   - non-executable model (= `drools-engine-classic`)
   - After jitting (= after evaluating the constraint 20 times)
   
   A constraint like this fails, where `value` is `BigDecimal`
   ```
       Fact( value / 7B >= 0 )
   ```
   
   ```
    org.drools.mvel.ConstraintEvaluationException: Error evaluating constraint 
'value / 7B >= 0' in [Rule "Rule 1" in 
/tmp/reproducer_arithmeticexception_1c/target/classes/com/example/reproducer/Sample.drl]
           at org.drools.mvel.MVELConstraint.evaluate(MVELConstraint.java:287)
           at org.drools.mvel.MVELConstraint.isAllowed(MVELConstraint.java:235)
           at org.drools.core.reteoo.AlphaNode.modifyObject(AlphaNode.java:145)
   ...
       Caused by: java.lang.ArithmeticException: Non-terminating decimal 
expansion; no exact representable decimal result. 
           at java.base/java.math.BigDecimal.divide(BigDecimal.java:1736)
           at 
ConditionEvaluator05169571c7d846e3b0c6e6e4439e0ef9.evaluate(Unknown Source)
           at org.drools.mvel.MVELConstraint.evaluate(MVELConstraint.java:285)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to