[jira] [Closed] (OFBIZ-5616) Incorrect Java 6 integer format in updateProductAverageCostOnReceiveInventory

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

[jira] [Closed] (OFBIZ-5616) Incorrect Java 6 integer format in updateProductAverageCostOnReceiveInventory

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-5616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum closed OFBIZ-5616.
------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Fixed in rev 1586987. I used a different approach than the attached patch.

> Incorrect Java 6 integer format in updateProductAverageCostOnReceiveInventory
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-5616
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5616
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Paul Foxworthy
>            Assignee: Adrian Crum
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-5616_NumberFormatException_updateProductAverageCostOnReceiveInventory
>
>
> In updateProductAverageCostOnReceiveInventory (https://fisheye6.atlassian.com/browse/ofbiz/trunk/applications/product/script/org/ofbiz/product/cost/CostServices.xml?hb=true#to587), there's a call to set-calendar with a "seconds" parameter of +1. The seconds value is passed to Integer.parseInt. A leading plus works in Java 7, but causes an exception in Java 6. Every other call to set-calendar in OFBiz with a positive value does not have a leading plus sign.



--
This message was sent by Atlassian JIRA
(v6.2#6252)