Bug 724214 (BRMS-157) - issue with using contains operator on array or collection of double (any )
Summary: issue with using contains operator on array or collection of double (any )
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-157
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: unspecified
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 5.0.1
Assignee: Mark Proctor
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-07 13:13 UTC by nwallace
Modified: 2009-10-05 08:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Windows XP service pack2
Last Closed: 2009-09-01 12:19:34 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-157 0 None None None Never

Description nwallace 2009-07-07 13:13:33 UTC
Date of First Response: 2009-09-10 00:45:45
securitylevel_name: Public

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.

Comment 1 nwallace 2009-07-07 13:14:53 UTC
Link: Added: This issue is related to JBRULES-1954


Comment 2 nwallace 2009-09-01 12:19:34 UTC
Fix in place.

Comment 3 David Le Sage 2009-09-10 04:45:45 UTC
For documenting this in the Release Notes, can you please confirm the following and fill in the missing information. Dot point explanations are fine:

The CAUSE (what was actually broken)
 * 

CONSEQUENCES of the bug (how it impacts users.)
 * When the user tried to utilize the "contains" operator on an array of the primitive type
    "double", a "classcastexception" error occurred.

The FIX (what was changed to eliminate this bug) and 
 *

RESULTS of the fix (what now happens for users.)
 * The error no longer occurs???


Comment 4 David Le Sage 2009-09-23 05:31:47 UTC
We are still awaiting the outstanding information for the Release Notes on this one.  Please provide it as soon as possible. Thanks.

Comment 5 Dana Mison 2009-10-05 06:17:48 UTC
added to the 5.0.CP01 release notes as resovled:

JBRULES-1954
The contains operator was throwing a class cast exception if used on an array of the primitive type double. This has been fixed.


Note You need to log in before you can comment on or make changes to this bug.