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

BufferedWriter and FilteredOutputStream.close throw IAE if flush and close throw equal exceptions

    XMLWordPrintable

Details

    • b72
    • Verified

    Backports

      Description

        The changes in JDK-7015589 to use try-with-resources didn't account of writer or output stream implementations that cache the IOException in a way that results in flush and close throwing equal exceptions. The result is that close can throw IllegalAccessException when it attempts to add the suppressed exception.

        This bug is reported on core-libs-dev here:
          http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-May/026724.html

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: