Bug 724214 (BRMS-157)

Summary: issue with using contains operator on array or collection of double (any )
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: nwallace <nwallace>
Component: unspecifiedAssignee: Mark Proctor <mark.proctor>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: unspecified   
Target Milestone: ---   
Target Release: 5.0.1   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-157
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Windows XP service pack2
Last Closed: 2009-09-01 12:19:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.