CLONE -issue with using contains operator on array or collection of double (any )
---------------------------------------------------------------------------------
Key: JBRULES-2169
URL:
https://jira.jboss.org/jira/browse/JBRULES-2169
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 4.0.7, 5.0.0.M3
Environment: Windows XP service pack2
Reporter: Neil Wallace
Assignee: Mark Proctor
Fix For: 5.0.1.FINAL
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira