Hide Forgot
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.
Link: Added: This issue is related to JBRULES-1954
Fix in place.
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???
We are still awaiting the outstanding information for the Release Notes on this one. Please provide it as soon as possible. Thanks.
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.