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

sjsxp issue 56: XNIException not caught, passed on to app, for invalid xml decl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 7
    • xml
    • h1145
    • generic
    • generic
    • Verified

        When parsing certain types of illegal xml declarations (one missing version
        info, like "<?xml ?>", for example), underlying XNIException (which is of type
        RuntimeExcception) gets thrown right through to the calling app.
        It should be caught and converted or wrapped into an XMLStreamException I think.
        The reason I think this is a problem is that calling apps probably do not except
        invalid docs to result in an unchecked exception, given that almost all Stax
        methods are to throw checked XMLStreamExceptions.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: