[jboss-jira] [JBoss JIRA] Created: (JBXB-148) xsd:double marshalled in exponential form
Darran Lofthouse (JIRA)
jira-events at lists.jboss.org
Mon Jun 23 12:12:30 EDT 2008
xsd:double marshalled in exponential form
-----------------------------------------
Key: JBXB-148
URL: http://jira.jboss.com/jira/browse/JBXB-148
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-2.0.0.CR11, JBossXB-1.0.0.SP2
Reporter: Darran Lofthouse
Assigned To: Darran Lofthouse
Fix For: JBossXB-2.0.0.CR12, JBossXB-1.0.0.SP3
Values of xsd:decimal are marshalled using java.math.BigDecimal.toString(), this worked correctly in Java 1.4 but in Java 5.0 this now outputs it in exponential form.
However from the schema specification decimal values should be marshalled as decimal values separated by a period and preceded by a '-' if negative.
http://www.w3.org/TR/xmlschema-2/#decimal
In Java 5 the method toPlainString() should be used.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list