[jira] [Commented] (OFBIZ-11843) Accept return process throwing missing method exception

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

[jira] [Commented] (OFBIZ-11843) Accept return process throwing missing method exception

Nicolas Malin (Jira)

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

ASF subversion and git services commented on OFBIZ-11843:
---------------------------------------------------------

Commit df179777b68f8d9411b84b3e11d38e0bda5c0bb4 in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=df17977 ]

Fixed: BigDecimal casting in Groovy (OFBIZ-11862)

Sometimes use wrong type castings for BigDecimal:

I have observed that for typecasting in groovy, we have used the wrong coding
pattern like

(BigDecimal) 0
It should be like
0 as BigDecimal

Note that this does not apply to decimal because in case of decimal, the default
type is always BigDecimal in Groovy.

Thanks: Pritam Kute for spotting the issue in OFBIZ-11843


> Accept return process throwing missing method exception
> -------------------------------------------------------
>
>                 Key: OFBIZ-11843
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11843
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Trunk
>            Reporter: Pritam Kute
>            Assignee: Pawan Verma
>            Priority: Major
>             Fix For: Upcoming Branch
>
>
> Steps to regenerate:
> 1. Open any return in requested status
> 2. Go to 'Return Items' menu
> 3. Click on the 'Accept Return' button.
> Expected Result:
> The return should be marked as accepted in the system.
> Actual:
> Error screen with error log as:
> org.apache.ofbiz.webapp.event.EventHandlerException: Service invocation error (groovy.lang.MissingMethodException: No signature of method: static java.math.BigDecimal.minus() is applicable for argument types: (BigDecimal) values: [0.01] Possible solutions: minus(java.lang.Character), minus(java.lang.Number), min(java.math.BigDecimal), plus(), signum(), find())



--
This message was sent by Atlassian Jira
(v8.3.4#803005)