Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5331

Handling BigDecimals data in ADB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.6.3, 1.7.0
    • adb
    • 1.7.0-SNAPSHOT
      JDK 1.6

    Description

      I'm facing the same issue https://issues.apache.org/jira/browse/AXIS2-4036 in 1.7.0-SNAPSHOT.
      To be backward compatible axis2 adb need to use toPlainString() method provided by BigDecimal API.

      I have attached a patch with a test case to solve in adb.

      But what I more concerned is, whether axis2 need to handle serialization and de-serialization of BigDecimals in a configurable manner. Suppose, a java-adb-client need to manage his input and out data in scientific notation (in that case E-3 => 0.000), but axis2-adb always send 0.000. I feel, there should be a configurable way s.t. a client can choose to BigDecimal input/outputs in scientific notation or plain text notation.

      Attachments

        1. AXIS2-5330-v1.patch
          1 kB
          Denis Weerasiri

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ddweerasiri Denis Weerasiri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: