[
https://issues.apache.org/jira/browse/XERCESJ-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Glavassevich updated XERCESJ-1233:
------------------------------------------
Fix Version/s: 2.9.1
> Canonical lexical value produced for duration is invalid if seconds very
> large or very small.
> ---------------------------------------------------------------------------------------------
>
> Key: XERCESJ-1233
> URL: https://issues.apache.org/jira/browse/XERCESJ-1233
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema Datatypes
> Affects Versions: 2.9.0
> Reporter: Michael Glavassevich
> Assignee: Michael Glavassevich
> Fix For: 2.9.1
>
>
> This is a similar problem to XERCESJ-1232. If the seconds portion of a
> duration is greater than or equal to 10^7 or less than 10^-3 the canonical
> value produced will contain a double written in scientific notation,
> something like "P0Y0M0DT1H20M2.0E-4S". This occurs because we're relying on
> String.valueOf(double) to construct the seconds portion of the lexical value.
> The spec doesn't define the canonical lexical representation for duration
> but the value we produce should at least be valid. Note that we check if the
> canonical lexical value of a value constraint is allowed in the lexical
> space, so a default or fixed value like "PT1H20M0.0002S" will currently be
> reported as invalid.
--
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]