Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 80302 invoked from network); 3 Sep 2009 18:09:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Sep 2009 18:09:20 -0000 Received: (qmail 87494 invoked by uid 500); 3 Sep 2009 18:09:19 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 87418 invoked by uid 500); 3 Sep 2009 18:09:19 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 87408 invoked by uid 99); 3 Sep 2009 18:09:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 18:09:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 18:09:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BE3D9234C1EE for ; Thu, 3 Sep 2009 11:08:57 -0700 (PDT) Message-ID: <81763236.1252001337778.JavaMail.jira@brutus> Date: Thu, 3 Sep 2009 11:08:57 -0700 (PDT) From: "Sahoo (JIRA)" To: dev@felix.apache.org Subject: [jira] Closed: (FELIX-1556) Bundle.getResource/s is not able to find resources if the package is not alraedy wired when I use DynamicImport-Package: * In-Reply-To: <1440763783.1251995818056.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-1556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sahoo closed FELIX-1556. ------------------------ Yes, I tried with your fix and it works. Closing the issue. I am glad we discovered and fixed before 2.0 is out. > Bundle.getResource/s is not able to find resources if the package is not alraedy wired when I use DynamicImport-Package: * > -------------------------------------------------------------------------------------------------------------------------- > > Key: FELIX-1556 > URL: https://issues.apache.org/jira/browse/FELIX-1556 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.8.1 > Environment: generic > Reporter: Sahoo > Assignee: Richard S. Hall > Fix For: felix-2.0.0 > > > This appears to be a serious bug. While running GlassFish on Felix 1.8.1 and on a latest build off trunk, I see the following: > I have a bundle which has DynamicImport-Package: *. I call bundle.getResources("foo/Bar.class") and it does not find the resource even if there exists a unique bundle which exports package foo and has a resource foo/Bar.class. If I call bundle.loadClass("foo.Bar"), it finds the class. I also see a WIRE being setup between the importer and exporter for package foo. Subsequently, getResource also works. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.