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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 14
    • Affects Version/s: 9
    • Component/s: 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.

            Assignee:
            Brian Burkhalter
            Reporter:
            Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: