-
Bug
-
Resolution: Done
-
Major
-
7.48.0.Final
-
2020 Week 52-03 (from Dec 21)
-
4
-
-
Undefined
-
NEW
-
NEW
-
---
-
---
Compound assignment operation like BigDecimal_type_property <op> Numeric/BigDecimal_value causes an unexpected result or error in MVEL (org.mvel2).
When using MVEL.eval method, the result of "+=" operation is incorrect, and "-=", "*=", "/=" operations result in an error.
- BigDecimal_type_property <op> Numeric_value (Initial value of $bus.weight is 12000B)
- $bus.weight += 1000 ==> 1000 // incorrect result
- $bus.weight -= 1000 ==> Error
- $bus.weight *= 1000 ==> Error
- $bus.weight /= 1000 ==> Error
- BigDecimal_type_property <op> BigDecimal_value (Initial value of $bus.weight and bdv are 12000B and 1000B respectively)
- $bus.weight += bdv ==> 1000 // incorrect result
- $bus.weight -= bdv ==> Error
- $bus.weight *= bdv ==> Error
- $bus.weight /= bdv ==> Error
When using MVEL.executeExpression method, the result of "+=" operation is correct, while "-=", "*=", "/=" operations cause an error.
- BigDecimal_type_property <op> Numeric_value (Initial value of $bus.weight is 12000B)
- $bus.weight += 1000 ==> 13000 // correct
- $bus.weight -= 1000 ==> Error
- $bus.weight *= 1000 ==> Error
- $bus.weight /= 1000 ==> Error
- BigDecimal_type_property <op> BigDecimal_value (Initial value of $bus.weight and bdv are 12000B and 1000B respectively)
- $bus.weight += bdv ==> 13000 // correct
- $bus.weight -= bdv ==> Error
- $bus.weight *= bdv ==> Error
- $bus.weight /= bdv ==> Error
$bus.weight is a BigDecimal type property.
MVEL library should return correct result for any operations above.
- is blocked by
-
DROOLS-5942 Bump Mvel version to 2.4.12+
- Closed
- is incorporated by
-
RHDM-1538 Compound assignment operation like BigDecimal_type_property <op> Numeric/BigDecimal_value causes an unexpected result or error in MVEL.
- Closed