RFR [14/java.xml] 8157830: Errors in XSLT stylesheet are not dispatched correctly to ErrorListener

Joe Wang huizhe.wang at oracle.com
Thu Jul 18 17:40:45 UTC 2019


Please review a patch to eliminate the [Fatal Error] message printed out 
to the console. Whether the parser should have written the error out in 
the first place is up to debate, not covered in this patch, but when the 
request is for the Transformer to handle errors through a registered 
ErrorListener, all errors should have been passed onto the ErrorListener.

The fix is to set a proxy handler to the parser that simply hands the 
errors over to the Transformer's ErrorListener.

JBS: https://bugs.openjdk.java.net/browse/JDK-8157830
webrev: http://cr.openjdk.java.net/~joehw/jdk14/8157830/webrev/

Thanks,
Joe


More information about the core-libs-dev mailing list