Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1579

NPE with xsd:QName validation.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.8.0
    • Jena 3.9.0
    • Datatypes
    • None

    Description

      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.

        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);
            }
        }
      

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: