[
https://issues.apache.org/jira/browse/XERCESJ-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
KASAI Hiroyoshi updated XERCESJ-1342:
-------------------------------------
Attachment: XMLGregorianCalendarImpl.java.XERCESJ-1342.diff
I wrote and attached a patch for proposal.
Original code supports current and old gMonth definition (before
http://www.w3.org/2001/05/xmlschema-rec-comments.html#pfiLexgMonth) .
This patch also support both old style (ex. "--11Z") and new style (ex.
"--11--Z").
> Valid gMonth value cannot be parsed
> -----------------------------------
>
> Key: XERCESJ-1342
> URL: https://issues.apache.org/jira/browse/XERCESJ-1342
> Project: Xerces2-J
> Issue Type: Bug
> Components: JAXP (javax.xml.datatype)
> Affects Versions: 2.9.1
> Reporter: Radu Preotiuc-Pietro
> Attachments: XMLGregorianCalendarImpl.java.XERCESJ-1342.diff
>
>
> Trying to parse a gMonth value with the 'Z' timezone like "--07Z" yields an
> IllegalArgumentException, even though the value is ok according to XMLSchema
> part 2, chapter 3.2.14.1: "An optional following time zone qualifier is
> allowed as for date."
> One can also easily see this from the source code of
> XMLGregorianCalendarImpl:417 (SVN HEAD) where a test is being made to build
> the right parser format but misses this case.
--
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]