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

Lance Andersen lance.andersen at oracle.com
Thu Jul 18 22:06:16 UTC 2019


+1
> On Jul 18, 2019, at 1:40 PM, Joe Wang <huizhe.wang at oracle.com> wrote:
> 
> 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

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>





More information about the core-libs-dev mailing list