-
Bug
-
Resolution: Fixed
-
P3
-
7
-
h1145
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2185497 | 7 | Joe Wang | P3 | Closed | Fixed | m05 |
JDK-2182544 | 6u18 | Joe Wang | P3 | Resolved | Fixed | b02 |
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.
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.
- backported by
-
JDK-2182544 sjsxp issue 56: XNIException not caught, passed on to app, for invalid xml decl
-
- Resolved
-
-
JDK-2185497 sjsxp issue 56: XNIException not caught, passed on to app, for invalid xml decl
-
- Closed
-