jdk.tools.jlink.internal.plugins.ZipPlugin does not close the Deflater in exceptional cases

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 9
    • Component/s: tools
    • b11

      jdk.tools.jlink.internal.plugins.ZipPlugin is a jlink plugin. In its internal implementation in the private compress() method, it uses a java.util.zip.Deflater to deflate the content. In its current form, the implementation in that method doesn't close the Deflater instance in exceptional cases and that appears to be an oversight which should be fixed.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: