tkobayas commented on code in PR #6250:
URL:
https://github.com/apache/incubator-kie-drools/pull/6250#discussion_r1953894260
##########
drools-mvel/src/main/java/org/drools/mvel/ASMConditionEvaluatorJitter.java:
##########
@@ -873,16 +875,20 @@ private void jitAritmeticOperation(Class<?>
operationType, AritmeticOperator ope
try {
switch (operator) {
case ADD:
- invoke(operationType.getMethod("add",
operationType));
+ addMathContext();
Review Comment:
@gitgabrio Thank you for the suggestion! Yes, it's better. I have refactored.
I also noticed that BigInteger needs to be handled differently. Updated with
test cases.
--
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]