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

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: jaxp_1.5, 8
    • Fix Version/s: 8
    • Component/s: xml
    • Subcomponent:
    • Resolved In Build:
      b113
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: