[jira] Commented: (OFBIZ-400) Allow ShoppingCartHelper.addToCart to be called from simple-method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-400) Allow ShoppingCartHelper.addToCart to be called from simple-method

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466815 ]

David E. Jones commented on OFBIZ-400:
--------------------------------------

I'd rather stick with what is established in Java than make something up on our own. Anyone that is calling a Java method will no doubt know something about Java or at least be looking at the method signature, and it would be nice if what we used was the same....

> Allow ShoppingCartHelper.addToCart to be called from simple-method
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-400
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-400
>             Project: Apache OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Chris Howe
>         Assigned To: David E. Jones
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: CachedClassLoader.patch, CachedClassLoader.patch, 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.
-
You can reply to this email to add a comment to the issue online.