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

Audit and fix classes in java.io for cases where close may fail

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      7015589 concerns the question as to the state of a resource in the event that its close method fails (by throwing an exception). The changes for 7015589 add an advisory note to java.lang.AutoCloseable and java.io.Closeable and fix a couple of classes, including BufferedReader and BufferedWriter.
       
      There is further work that can be done on this issue. In particular BufferedOutputStream, PushbackReader and maybe others need to be checked to see how the behave when closing the underlying stream fails.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: