You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-dev@geronimo.apache.org by "Lazar Kirchev (JIRA)" <ji...@apache.org> on 2013/05/09 16:37:15 UTC

[jira] [Updated] (XBEAN-245) JarFile object left open in XBean finder

     [ https://issues.apache.org/jira/browse/XBEAN-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lazar Kirchev updated XBEAN-245:
--------------------------------

    Attachment: test.zip
    
> JarFile object left open in XBean finder 
> -----------------------------------------
>
>                 Key: XBEAN-245
>                 URL: https://issues.apache.org/jira/browse/XBEAN-245
>             Project: XBean
>          Issue Type: Bug
>          Components: finder
>    Affects Versions: 3.12
>            Reporter: Lazar Kirchev
>         Attachments: test.zip
>
>
> In the constructor of org.apache.xbean.finder.archive.JarArchive. In its constructor a JarFile object is created (on line 53) and this jar never gets closed. 
> To reproduce the problem use the attached zip. It contains a test bundle - JarArchiveTest, the Eclipse project for it and a jar file, used by the test. The only thing that the test bundle does is to call ClasspathArchive.archive(ClassLoader, URL) in its Activator.start() method.
> Steps to reproduce:
> 1. install and start JarArchiveTest_1.0.0.jar in an OSGi environment (it should contain at the minimum org.apache.xbean.finder.shaded and its dependencies - org.apache.xbean.asm.shaded, org.apache.xbean.bundleutils and org.slf4j.api); the dummy.jar should be in the working folder - the test bundle searches it as "./dummy.jar".
> 2. try to delete dummy.jar - it should not be possible
> 3. stop JarArchiveTest_1.0.0.jar and try to delete dummy.jar - it should not be possible
> 4. uninstall JarArchiveTest_1.0.0.jar and try to delete dummy.jar - it should not be possible
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira