JDK-8162438 : The systemId returned by a resolver is not used by the ValidatorHandler
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.validation
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-07-23
  • Updated: 2016-07-30
  • Resolved: 2016-07-30
Related Reports
Relates :  
Description
When the source is a SAXSource, the systemId returned by a custom resolver is not used by the ValidatorHandler. 

The following code demonstrate the issue:

Validator validator = schema.newValidator();
validator.setResourceResolver(resolver);

Where the resolver returns a LSInput instance, e.g. new LSInputImpl(null, systemId, null). The systemId then is not used by the Validator.

Comments
Fixed by JDK-8158084.
30-07-2016