You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2008/07/25 21:49:31 UTC

[jira] Created: (XERCESJ-1323) XSDateTime.getXMLGregorianCalendar() loses precision for fractional digits and inserts timezones where there are none.

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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Assigned: (XERCESJ-1323) XSDateTime.getXMLGregorianCalendar() loses precision for fractional digits and inserts timezones where there are none.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reassigned XERCESJ-1323:
---------------------------------------------

    Assignee: Michael Glavassevich

> 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
>            Assignee: 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1323) XSDateTime.getXMLGregorianCalendar() loses precision for fractional digits and inserts timezones where there are none.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1323.
-------------------------------------------

    Resolution: Fixed

Fixed in SVN (rev 679888).

> 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
>            Assignee: 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1323) XSDateTime.getXMLGregorianCalendar() loses precision for fractional digits and inserts timezones where there are none.

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1323:
------------------------------------------

    Fix Version/s: 2.10.0

> 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
>            Assignee: Michael Glavassevich
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org