Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5616

Incorrect Java 6 integer format in updateProductAverageCostOnReceiveInventory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • Trunk
    • product
    • None

    Description

      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.

      Attachments

        Activity

          People

            adrianc@hlmksw.com Adrian Crum
            paulfoxworthy Paul Foxworthy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: