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 "Sven Blösl (JIRA)" <ji...@apache.org> on 2008/09/18 17:28:44 UTC
[jira] Created: (AXIS2-4036) Incorrect BigDecimal to xs:decimal
conversion with Jdk 1.5+
Incorrect BigDecimal to xs:decimal conversion with Jdk 1.5+
-----------------------------------------------------------
Key: AXIS2-4036
URL: https://issues.apache.org/jira/browse/AXIS2-4036
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: adb
Affects Versions: 1.3, 1.4
Environment: Jdk1.5
Reporter: Sven Blösl
SimpleTypeMapper calls BigDecimal.toString() to convert the BigDecimal into a string.
In a Java5 environment this will produce invalid xs:decimal values for BigDecimals where the toString() decides to use scientific notation.
The reason is that the semantic of BigDecimal.toString() has changed from Jdk1.4 to Jdk1.5.
The prior toString() semantic is now implemented by the new toPlainString() method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-4036) Incorrect BigDecimal to xs:decimal
conversion with Jdk 1.5+
Posted by "Sven Blösl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646941#action_12646941 ]
Sven Blösl commented on AXIS2-4036:
-----------------------------------
And what about using Singletons instead of static method?
> Incorrect BigDecimal to xs:decimal conversion with Jdk 1.5+
> -----------------------------------------------------------
>
> Key: AXIS2-4036
> URL: https://issues.apache.org/jira/browse/AXIS2-4036
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.4, 1.3
> Environment: Jdk1.5
> Reporter: Sven Blösl
>
> SimpleTypeMapper calls BigDecimal.toString() to convert the BigDecimal into a string.
> In a Java5 environment this will produce invalid xs:decimal values for BigDecimals where the toString() decides to use scientific notation.
> The reason is that the semantic of BigDecimal.toString() has changed from Jdk1.4 to Jdk1.5.
> The prior toString() semantic is now implemented by the new toPlainString() method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-4036) Incorrect BigDecimal to xs:decimal
conversion with Jdk 1.5+
Posted by "Sven Blösl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646913#action_12646913 ]
Sven Blösl commented on AXIS2-4036:
-----------------------------------
Same bug applies to org.apache.axis2.databinding.utils.ConverterUtil.convertToString(Object o).
Why are there two mapper classes for at all?
> Incorrect BigDecimal to xs:decimal conversion with Jdk 1.5+
> -----------------------------------------------------------
>
> Key: AXIS2-4036
> URL: https://issues.apache.org/jira/browse/AXIS2-4036
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.4, 1.3
> Environment: Jdk1.5
> Reporter: Sven Blösl
>
> SimpleTypeMapper calls BigDecimal.toString() to convert the BigDecimal into a string.
> In a Java5 environment this will produce invalid xs:decimal values for BigDecimals where the toString() decides to use scientific notation.
> The reason is that the semantic of BigDecimal.toString() has changed from Jdk1.4 to Jdk1.5.
> The prior toString() semantic is now implemented by the new toPlainString() method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org