[ http://issues.apache.org/jira/browse/OFBIZ-400?page=comments#action_12446839 ] David E. Jones commented on OFBIZ-400: --------------------------------------
This is a good topic, and something I've wanted to fix in the simple-method call-*-method operations to avoid having to create new method variations, which are a real mess. For this ShoppingCart method the reason we are using double for certain fields instead of Double to represent that they are required, whereas the Double ones can be null and so are optional. For now you could use a call-bsh snippet to call the method. The fix I'd like to do is to improve the reflection stuff in these operations to be able to pick out the primitive types and support them... > Allow ShoppingCartHelper.addToCart to be called from simple-method > ------------------------------------------------------------------ > > Key: OFBIZ-400 > URL: http://issues.apache.org/jira/browse/OFBIZ-400 > Project: OFBiz (The Open for Business Project) > Issue Type: Improvement > Reporter: Chris Howe > Priority: Minor > Attachments: ShoppingCartHelper.patch > > > To my knowledge a primitive type double cannot be sent from > <call-object-method> in minilang. So to allow ShoppingCartHelper.addToCart > to be usable from minilang there are three possible solutions. > 1)Change minilang to pass primitive type double (if there is a way to do this > already, disregard this issue) > 2)Change addToCart to accept Double quantity instead of double quantity > 3)Create additional method that accepts Double quantity and then passes that > to the current addToCart with a quantity.doubleValue() -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
