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

Catalog not used when the handler is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • xml
    • None
    • b09

      The use case:
          A SAX parser is created;
          A Catalog is set on the parser;
          The XML to be parsed contains XInclude file;
          Since we're using the Catalog, the parsing was started without a handler (handler = null).

      The result was the file was not parsed successfully, instead an Exception was thrown:
      org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 25; An include with href 'test.xml'failed, and no fallback element was found.

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

              Created:
              Updated:
              Resolved: