Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8015243

SchemaFactory does not catch enum. value that is not in the value space of the base type, anyURI.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • jaxp_1.5, 8
    • xml
    • b113
    • generic
    • generic

    Backports

      Description

        Attached schema (anyURI_b006.xsd) holds invalid instance of xs:anyURI. The piece of code that compiles it
        ----------------
         SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
         sf.setErrorHandler(errorCollector);
         Schema schema = sf.newSchema( new File("anyURI_b006.xsd"));
        ----------------
        does not throw SAXException:
        -----------------
        ERROR] enumeration-valid-restriction: Enumeration value '\\' is not in the value space of the base type, anyURI.
        -----------------
        as expected.

        See also the bug http://www.w3.org/Bugs/Public/show_bug.cgi?id=4048

        Attachments

          Issue Links

            Activity

              People

                joehw Joe Wang
                lkuskov Leonid Kuskov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: