XSDateTime.getXMLGregorianCalendar() loses precision for fractional digits and
inserts timezones where there are none.
----------------------------------------------------------------------------------------------------------------------
Key: XERCESJ-1323
URL: https://issues.apache.org/jira/browse/XERCESJ-1323
Project: Xerces2-J
Issue Type: Bug
Components: XML Schema API
Affects Versions: 2.9.1
Reporter: Michael Glavassevich
Priority: Minor
XSDateTime.getXMLGregorianCalendar() loses precision for fractional digits and
inserts timezones where there are none. We need to be careful when converting
a double to a BigDecimal. The naive approach "new BigDecimal(doubleValue -
((int) doubleValue))" doesn't work. Also need to check that the XSDateTime has
a timezone. If it doesn't we should specify DatatypeConstants.FIELD_UNDEFINED
as the value not zero.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]