[ 
https://issues.apache.org/jira/browse/JENA-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560669#comment-16560669
 ] 

ASF GitHub Bot commented on JENA-1579:
--------------------------------------

GitHub user afs opened a pull request:

    https://github.com/apache/jena/pull/450

    JENA-1579: Add Xerces code for xsd:QName, also used for xsd:NOTATION.

    https://issues.apache.org/jira/browse/JENA-1579

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena xsd-qname

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/450.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #450
    
----
commit c724aa89a264d1fcfa416499099657f79f38b8e4
Author: Andy Seaborne <andy@...>
Date:   2018-07-28T08:47:38Z

    JENA-1579: Add Xerces code for xsd:QName, also used for xsd:NOTATION.

----


> NPE with xsd:QName validation.
> ------------------------------
>
>                 Key: JENA-1579
>                 URL: https://issues.apache.org/jira/browse/JENA-1579
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Datatypes
>    Affects Versions: Jena 3.8.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>
> The parse/value code for two XSD datatypes got damaged in the migration of 
> Xerces datatype handling code.
> xsd:QName and xs:NOTATION
> Test case: this will print two stacktraces with Jena 3.8.0.
> {code:java}
>   public static void main(String... args) {
>       TypeMapper typeMapper = TypeMapper.getInstance();
>       try {
>           System.out.println("XSDDatatype.XSDQName");
>           RDFDatatype datatype = 
> typeMapper.getTypeByName(XSDDatatype.XSDQName.getURI());
>           datatype.isValid("foo");
>           System.out.println("... OK");
>       } catch (NullPointerException ex) {
>           ex.printStackTrace(System.out);
>       }
>       try {
>           System.out.println("XSDDatatype.XSDNOTATION");
>           RDFDatatype datatype = 
> typeMapper.getTypeByName(XSDDatatype.XSDNOTATION.getURI());
>           datatype.isValid("foo");
>           System.out.println("... OK");
>       } catch (NullPointerException ex) {
>           ex.printStackTrace(System.out);
>       }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to