Return-Path: X-Original-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Delivered-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35BC211587 for ; Thu, 9 May 2013 14:59:47 +0000 (UTC) Received: (qmail 36101 invoked by uid 500); 9 May 2013 14:37:16 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 36086 invoked by uid 500); 9 May 2013 14:37:16 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 36061 invoked by uid 99); 9 May 2013 14:37:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 14:37:15 +0000 Date: Thu, 9 May 2013 14:37:15 +0000 (UTC) From: "Lazar Kirchev (JIRA)" To: xbean-dev@geronimo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (XBEAN-245) JarFile object left open in XBean finder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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