commit | 55c17a8c6534dc512444b0145b49375c84d89e63 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Mon Sep 07 15:03:53 2009 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Mon Sep 07 15:03:53 2009 +0000 |
tree | 5fd535e2d5811320a11e6df4bcf449a0a02e1039 | |
parent | 20dd844f6424e897c15d7ec13d777494a919628d [diff] |
FELIX-1270 Listing the imports uses the Bundle.getResource method to check whether a required package is contained in the bundle or not. This causes the bundle to be resolved which is not what we want if only looking at it. We must use the Bundle.getEntry method in this case. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@812179 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java index 5cdbd66..9b9dda6 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
@@ -799,7 +799,7 @@ if ( ep == null ) { String path = r4Import.getName().replace( '.', '/' ); - if ( bundle.getResource( path ) != null ) + if ( bundle.getEntry( path ) != null ) { continue; }