[ 
https://issues.apache.org/jira/browse/XERCESJ-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964740#action_12964740
 ] 

Michael Glavassevich commented on XERCESJ-1342:
-----------------------------------------------

Construction and toXMLFormat() need to be addressed simultaneously for a proper 
fix.

> XMLGregorianCalendar cannot parse valid XML Schema 1.0 2nd edition gMonth 
> values; serializes gMonth values with old 1st edition format.
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 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: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to