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 "Radu Preotiuc-Pietro (JIRA)" <xe...@xml.apache.org> on 2008/11/27 03:42:44 UTC

[jira] Created: (XERCESJ-1342) Valid gMonth value cannot be parsed

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


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


[jira] Commented: (XERCESJ-1342) Valid gMonth value cannot be parsed

Posted by "KASAI Hiroyoshi (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711447#action_12711447 ] 

KASAI Hiroyoshi commented on XERCESJ-1342:
------------------------------------------

sorry, my prev comment correction.

NG: old style (ex. "--11Z") and new style (ex. "--11--Z").
OK: new style (ex. "--11Z") and old 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1342) Valid gMonth value cannot be parsed

Posted by "KASAI Hiroyoshi (JIRA)" <xe...@xml.apache.org>.
     [ 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org