[jira] [Created] (XBEAN-295) ZipFile and ZipOutputStream are not closed properly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (XBEAN-295) ZipFile and ZipOutputStream are not closed properly

Romain Manni-Bucau (Jira)
Kaloyan Spiridonov created XBEAN-295:
----------------------------------------

             Summary: ZipFile and ZipOutputStream are not closed properly
                 Key: XBEAN-295
                 URL: https://issues.apache.org/jira/browse/XBEAN-295
             Project: XBean
          Issue Type: Bug
          Components: asm
    Affects Versions: 4.5
            Reporter: Kaloyan Spiridonov


In JarOptimizer class at lines 106 and 107 ZipFile and ZipOutputStream are created and they are closed on lines 133 and 134. If something happens between 107 and 133 lines  (For example Exception is thrown) then the ZipFile and ZipOutputStream will remain open.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)