JDK-8078891 : java.io.SequenceInputStream.close is not atomic and not idempotent
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-29
  • Updated: 2019-08-06
  • Resolved: 2019-07-29
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.
JDK 14
14 b08Fixed
Related Reports
Relates :  
Description
Current implementation of java.io.SequenceInputStream.close may fail to adhere to its contract in case when one of the remaining input streams throws IOException on close; the input streams remaining in the enumeration will be left open. In addition, the 'in' field representing the current InputStream will be left non-null if an exception is thrown from a stream's close() method. This will make the SequenceInputStream still appear to be open, causing misbehavior of methods such as available(), read(), and others.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/be47f3ccdf12 User: bpb Date: 2019-07-29 16:10:22 +0000
29-07-2019