[jboss-jira] [JBoss JIRA] Updated: (JBXB-148) xsd:decimal marshalled in exponential form

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Mon Jun 23 12:38:28 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBXB-148?page=all ]

Darran Lofthouse updated JBXB-148:
----------------------------------

    Summary: xsd:decimal marshalled in exponential form  (was: xsd:double marshalled in exponential form)

> xsd:decimal 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-1.0.0.SP2, JBossXB-2.0.0.CR11
>            Reporter: Darran Lofthouse
>         Assigned To: Darran Lofthouse
>             Fix For: JBossXB-1.0.0.SP3, JBossXB-2.0.0.CR12
>
>
> 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