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

(zipfs) remove ExistingChannelCloser facility in zipfs implementation

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • Verification:
      Not verified

      Description

      Looking at ZipFileSystem's close() implementation, the ExistingChannelCloser facility seems to be kind of unneeded. ExistingChannelCloser is a way to keep existing, open InputStreams against entries in the Zip filesystem alive, even when the sync() method is called and writes a new zip archive. However, the sync() method is only used by the close() implementation and there it is a requirement that all existing InputStreams be closed before calling sync(). So this facility is obsolete and shall be removed.

      Some prior discussion with additional information can be found here:
      https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-April/059839.html

        Attachments

          Activity

            People

            Assignee:
            clanger Christoph Langer
            Reporter:
            clanger Christoph Langer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: