Uploaded image for project: 'XML-RPC'
  1. XML-RPC
  2. XMLRPC-130

Small doubles are serialized in a non-compliant way

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2, 2.0, 3.0rc1
    • 3.1.1
    • Releases
    • None

    Description

      The double value of (for example) ".000004" is serialized by XML-RPC as "4.0E-6". Unfortunately, this does not comply with the XML-RPC spec (http://www.xmlrpc.com/spec) which says:

      "At this time, only decimal point notation is allowed, a plus or a minus, followed by any number of numeric characters, followed by a period and any number of numeric characters."

      So, Java's conversion to the exponential format is not allowed.

      Attachments

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            aren Aren Sandersen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: