[jboss-jira] [JBoss JIRA] Created: (JBRULES-1954) issue with using contains operator on array or collection of double (any )
sudhir Mudundi (JIRA)
jira-events at lists.jboss.org
Wed Feb 4 01:02:55 EST 2009
issue with using contains operator on array or collection of double (any )
--------------------------------------------------------------------------
Key: JBRULES-1954
URL: https://jira.jboss.org/jira/browse/JBRULES-1954
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.0.0.M3, 4.0.7
Environment: Windows XP service pack2
Reporter: sudhir Mudundi
Assignee: Mark Proctor
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. Is this a bug or am I missing something?
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
More information about the jboss-jira
mailing list