[
http://jira.jboss.com/jira/browse/JBXB-148?page=all ]
Darran Lofthouse resolved JBXB-148.
-----------------------------------
Resolution: Done
For JBossXB 1.0 used reflection to decide if toString() or toPlainString() should be used,
for trunk just use toPlainString() as there is no longer a Java 1.4 requirement.
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-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