JDK-7077254 : Audit and fix classes in java.io for cases where close may fail
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2011-08-10
  • Updated: 2018-09-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
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.