aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ross2012-11-29 09:10:25 (EST)
committerJohn Ross2012-11-29 09:10:25 (EST)
commit827796bf38d32e2d23963bd2d484dc60e77cae0d (patch)
tree4aa17ab836db666a02b55b0db37ecd764a4aa865
parentfe7b257f1e7a8a6e4501acb7d48e70a3fbfc444a (diff)
downloadrt.equinox.bundles-827796bf38d32e2d23963bd2d484dc60e77cae0d.zip
rt.equinox.bundles-827796bf38d32e2d23963bd2d484dc60e77cae0d.tar.gz
rt.equinox.bundles-827796bf38d32e2d23963bd2d484dc60e77cae0d.tar.bz2
[Bug 395334] StandardRegionFilter.isAllowed(BundleRevision) does not match against the bundle-symbolic-name attribute.
The isAllowed(BundleRevision) now includes the bundle-symbolic-name attribute in the map for matching.
-rw-r--r--bundles/org.eclipse.equinox.region/src/org/eclipse/equinox/internal/region/StandardRegionFilter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.region/src/org/eclipse/equinox/internal/region/StandardRegionFilter.java b/bundles/org.eclipse.equinox.region/src/org/eclipse/equinox/internal/region/StandardRegionFilter.java
index a4cba86..0f1f2ee 100644
--- a/bundles/org.eclipse.equinox.region/src/org/eclipse/equinox/internal/region/StandardRegionFilter.java
+++ b/bundles/org.eclipse.equinox.region/src/org/eclipse/equinox/internal/region/StandardRegionFilter.java
@@ -50,8 +50,10 @@ final class StandardRegionFilter implements RegionFilter {
public boolean isAllowed(BundleRevision bundle) {
HashMap<String, Object> attrs = new HashMap<String, Object>(3);
String bsn = bundle.getSymbolicName();
- if (bsn != null)
+ if (bsn != null) {
attrs.put(VISIBLE_BUNDLE_NAMESPACE, bsn);
+ attrs.put(Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE, bsn);
+ }
attrs.put(org.osgi.framework.Constants.BUNDLE_VERSION_ATTRIBUTE, bundle.getVersion());
attrs.put(BUNDLE_ID_ATTR, getBundleId(bundle));
return isBundleAllowed(attrs);