[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1954) issue with using contains operator on array or collection of double (any )
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Mon May 18 00:57:05 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor closed JBRULES-1954.
---------------------------------
Fix Version/s: 5.0.1.FINAL
Resolution: Done
> 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: 4.0.7, 5.0.0.M3
> Environment: Windows XP service pack2
> Reporter: sudhir Mudundi
> 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
More information about the jboss-jira
mailing list