-
Bug
-
Resolution: Done
-
Major
-
7.24.0.Final
-
2019 Week 29-31
-
- See PR unit test
-
NEW
-
NEW
When comparing an Integer taken from Map.get() with a String, Mvel coerces the type so they are compared as Integers.
For example, here $map.get("key") returns Integer 5, $status is String "10". So it doesn't match (expected).
rule R when FactWithMap( $map : valueMap ) Person( $status : status, $map.get("key") >= $status) then end
However, after jitting, the constraint is evaluated as true so the rule is fired (unexpected).
- causes
-
DROOLS-5596 Constraint jitting fails when comparing a value taken from a map with a String literal
- Resolved
- is incorporated by
-
RHDM-1022 Type coercion with Map.get() after jitting
- Closed