Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8228973

Default ErrorListener reports warnings and errors to the console

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 14
    • xml
    • None
    • behavioral
    • low
    • Hide
      While this is a change in behavior, it is extremely unlikely that applications relied on the existing functionality. Instead they should have registered their own ErrorListeners.

      Show
      While this is a change in behavior, it is extremely unlikely that applications relied on the existing functionality. Instead they should have registered their own ErrorListeners.
    • Java API
    • SE

      Summary

      Remove the requirement for the default implementation of javax.xml.transform.ErrorListener to report all warnings and errors to System.err.

      Problem

      The specification of javax.xml.transform.ErrorListener requires that the default implementation reports all warnings and errors to System.err. This is inappropriate since output to the console or server log (when it is so configured) could go unnoticed or unnecessarily clog the output channel.

      Solution

      Remove the requirement.

      Specification

      The class-level description of the interface is re-written. The only material change is removing requirement to report all warnings and errors to System.err.

      The package summary is updated to reflect the change. The statement regarding the default ErrorListener implementation is removed in favor of the @implNote in the ErrorListener.

      Specdiff attached.

      The specdiff can also be viewed here: http://cr.openjdk.java.net/~joehw/jdk14/8228854/specdiff_05/javax/xml/transform/package-summary.html

            joehw Joe Wang
            joehw Joe Wang
            Daniel Fuchs, Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: