Details
-
Bug
-
Resolution: Done
-
Major
-
4.0.7, 5.0.0.M3
Description
When using 'contains' operator on array or collection of strings its working fine. But when we use it for an array of primitive type double it gives a classcastexception . Is auto boxing not supported? May be this is fine as it mentioned in the documentation that it works only on Objects. I tried using the array of Double objects, here it doesn't throw an excpetion but the rule wasn't firing. The behaviour was same even if I use a collection of Double objects.
ex:
using Array
rule "OrderArray"
when
Order(valueArray contains 0)
then
System.out.println("OrderArray");
end.
using Collection
rule "OrderList"
when
Order(valueList contains 0)
then
System.out.println("OrderList");
end.