Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8326907 Preparation for feature and property adjustment
  3. JDK-8328829

XML Schema loader swallows error reported by a resolver

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • xml
    • None

      The Schema loader is currently specified to not require a schema source to be present, in other words, it is not required to report an exception when it fails to parse a schema source. This situation happens when a source returned by a resolver contains invalid schema document or incorrect path to the document. The exception returned by the parser then is not reported as an error but a warning.

      It also happens that the internal ErrorHandler did not implement the "warning" method. As a result, nothing is reported back, no error and no warning either.

      Reproduce:
          Try loading a schema that imports another, use a resolve to return an invalid source path. A schema object will be created with no error.

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

              Created:
              Updated: