You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Paul Foxworthy (JIRA)" <ji...@apache.org> on 2014/04/13 11:17:14 UTC
[jira] [Updated] (OFBIZ-5616) Incorrect Java 6 integer format in
updateProductAverageCostOnReceiveInventory
[ https://issues.apache.org/jira/browse/OFBIZ-5616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Foxworthy updated OFBIZ-5616:
----------------------------------
Attachment: OFBIZ-5616_NumberFormatException_updateProductAverageCostOnReceiveInventory
> 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: Paul Foxworthy
> Priority: Minor
> 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)