You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2018/07/29 15:42:00 UTC

[jira] [Resolved] (JENA-1579) NPE with xsd:QName validation.

     [ https://issues.apache.org/jira/browse/JENA-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-1579.
---------------------------------
       Resolution: Fixed
    Fix Version/s: Jena 3.9.0

> 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
>             Fix For: Jena 3.9.0
>
>
> 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)