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

Default ErrorListener reports warnings and errors to the console

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 14
    • Component/s: xml
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      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.
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: