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

java.io.SequenceInputStream.close is not atomic and not idempotent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 9
    • core-libs
    • b08

      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.

            bpb Brian Burkhalter
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: