Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-139

ZipFile fails to clean up Inflater resources

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: Archivers
    • Labels:
      None

      Description

      This bug has been reported to Ant's original code as https://issues.apache.org/bugzilla/show_bug.cgi?id=42696 . It seems as if InflaterInputStream.close() didn't clean up the Inflater instance if one is passed in to the constructor. I'm currently testing the patch to Ant and will merge it over once I'm ready.

      The code in Harmony[1] does invoke inflater.end but calling it again won't hurt. OpenJDK's InflaterInputStream[2] in fact behaves as described in Mounir's comment to Ant's Bugzilla.

      [1] http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/archive/src/main/java/java/util/zip/InflaterInputStream.java
      [2] http://hg.openjdk.java.net/jdk6/jdk6/jdk/file/506b35a2f558/src/share/classes/java/util/zip/InflaterInputStream.java

        Attachments

          Activity

            People

            • Assignee:
              bodewig Stefan Bodewig
              Reporter:
              bodewig Stefan Bodewig
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: