JDK-8167072 : Inconsistent behavior with USE_CATALOG for StAX processing
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2016-10-04
  • Updated: 2016-10-12
  • Resolved: 2016-10-07
Related Reports
Cloners :  
Relates :  
Description
USE_CATALOG is set to true. The supplied catalog file is approached and resolves to 'error.dtd' which is non-existent and it is expected to throw IO exception. But the missing error.dtd is not lookup in the filesystem and hence the exception is not thrown.
This is not the case with SAX or DOM. The same test scenario passes for both these processors.

Comments
Refer to JDK-8166220 and testStAXNegative in tests CatalogSupport2.java, CatalogSupport3.java and CatalogSupportBase.java, the StAX processor does not require DTD, upon a missing DTD, it simply ignores it and continue.
07-10-2016