[ https://issues.apache.org/jira/browse/XBEAN-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13758170#comment-13758170 ]
Kevan Miller commented on XBEAN-245: ------------------------------------ The "Patch Available" status was set by "Anonymous User". I don't see any recent code activity that would indicate the problem was newly fixed. And "Patch Available" is really intended to show that a patch has been posted to a Jira (not in SVN). I haven't been following developments closely, but I doubt that there is a patch... > 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.10, 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