Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2847

BigDecimalType incorrectly prints scientific notation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.9
    • 2.2.10
    • Aegis Databinding
    • None

    Description

      By the SOAP spec, types of "decimal" are not supposed to use scientific notation (http://www.w3.org/TR/xmlschema-2/#decimal).

      However if the value of a BigDecimal is small enough, the toString() method (used by the BigDecimalType class) will print using scientific notation.

      Instead, this type mapper should use the toPlainString() method to ensure no scientific notation is used.

      I have attached a patch and an example to what i am referring. I don't have an actual unit test for the BigDecimalType class itself.

      -B

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bmargulies Benson Margulies
            panth13 Bryan Stopp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment