You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Denis Weerasiri (JIRA)" <ji...@apache.org> on 2012/05/28 16:08:23 UTC

[jira] [Created] (AXIS2-5331) Handling BigDecimals data in ADB

Denis Weerasiri created AXIS2-5331:
--------------------------------------

             Summary: Handling BigDecimals data in ADB
                 Key: AXIS2-5331
                 URL: https://issues.apache.org/jira/browse/AXIS2-5331
             Project: Axis2
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.7.0
         Environment: 1.7.0-SNAPSHOT
            Reporter: Denis Weerasiri


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5331) Handling BigDecimals data in ADB

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284636#comment-13284636 ] 

Hudson commented on AXIS2-5331:
-------------------------------

Integrated in Axis2 #1522 (See [https://builds.apache.org/job/Axis2/1522/])
    Applied patch for AXIS2-5331. (Revision 1343543)

     Result = SUCCESS
sagara : 
Files : 
* /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
* /axis/axis2/java/core/trunk/modules/adb/test/org/apache/axis2/databinding/utils/ConverterUtilTest.java

                
> Handling BigDecimals data in ADB
> --------------------------------
>
>                 Key: AXIS2-5331
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5331
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.0
>         Environment: 1.7.0-SNAPSHOT
> JDK 1.6
>            Reporter: Denis Weerasiri
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5330-v1.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5331) Handling BigDecimals data in ADB

Posted by "Denis Weerasiri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Weerasiri updated AXIS2-5331:
-----------------------------------

    Environment: 
1.7.0-SNAPSHOT
JDK 1.6

  was:1.7.0-SNAPSHOT

    
> Handling BigDecimals data in ADB
> --------------------------------
>
>                 Key: AXIS2-5331
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5331
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.0
>         Environment: 1.7.0-SNAPSHOT
> JDK 1.6
>            Reporter: Denis Weerasiri
>              Labels: patch
>         Attachments: AXIS2-5330-v1.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5331) Handling BigDecimals data in ADB

Posted by "Denis Weerasiri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Weerasiri updated AXIS2-5331:
-----------------------------------

    Labels: patch  (was: )
    
> Handling BigDecimals data in ADB
> --------------------------------
>
>                 Key: AXIS2-5331
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5331
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.0
>         Environment: 1.7.0-SNAPSHOT
>            Reporter: Denis Weerasiri
>              Labels: patch
>         Attachments: AXIS2-5330-v1.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5331) Handling BigDecimals data in ADB

Posted by "Denis Weerasiri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Weerasiri updated AXIS2-5331:
-----------------------------------

    Attachment: AXIS2-5330-v1.patch
    
> Handling BigDecimals data in ADB
> --------------------------------
>
>                 Key: AXIS2-5331
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5331
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.0
>         Environment: 1.7.0-SNAPSHOT
>            Reporter: Denis Weerasiri
>              Labels: patch
>         Attachments: AXIS2-5330-v1.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Resolved] (AXIS2-5331) Handling BigDecimals data in ADB

Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5331.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0

Patch applied in r1343543. 

Though your suggestion is correct it's bit of a hard work to implement such configurable option for one data type. But your suggestions and patches are welcome on this.  
                
> Handling BigDecimals data in ADB
> --------------------------------
>
>                 Key: AXIS2-5331
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5331
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.0
>         Environment: 1.7.0-SNAPSHOT
> JDK 1.6
>            Reporter: Denis Weerasiri
>              Labels: patch
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5330-v1.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org