ppkarwasz opened a new pull request, #94: URL: https://github.com/apache/commons-secure-xml/pull/94
`SAXTransformerFactory.newTransformerHandler(Templates)` builds the handler by casting the `Templates`, or the `Transformer` it produces, to the implementation's own type, so one the implementation did not compile cannot be used at all. Saxon reports that as a `TransformerConfigurationException`; Apache Xalan and the stock JDK let an undeclared `ClassCastException` escape a method whose signature promises neither. The wrapper now catches that `ClassCastException` and reports it in the shape the TrAX contract offers, naming the offending class, with the original as the cause. A `Templates` produced by this factory is unaffected: it is unwrapped to the implementation's own before the call. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
