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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b72
    • Verification:
      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

          Issue Links

            Activity

            Show
            bpb Brian Burkhalter added a comment - Review thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-June/034275.html
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/b9aac6ffd2c5
            User: bpb
            Date: 2015-06-29 15:46:24 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/b9aac6ffd2c5 User: bpb Date: 2015-06-29 15:46:24 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/b9aac6ffd2c5
            User: lana
            Date: 2015-07-08 22:17:44 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/b9aac6ffd2c5 User: lana Date: 2015-07-08 22:17:44 +0000

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: