ZipFile fails to clean up Inflater resources
--------------------------------------------

                 Key: COMPRESS-139
                 URL: https://issues.apache.org/jira/browse/COMPRESS-139
             Project: Commons Compress
          Issue Type: Bug
          Components: Archivers
    Affects Versions: 1.1
            Reporter: Stefan Bodewig
            Assignee: Stefan Bodewig
             Fix For: 1.2


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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to