Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2007-01-08 09:58:36 -0500
committerThomas Watson2007-01-08 09:58:36 -0500
commit1884561417adb816aa420eddd328862672c5767b (patch)
treec0fef43561aeb594bd081d99b47cff4fd3218997
parent8113d8a74eb53184036e4a9eb78049246a8b2b9b (diff)
downloadrt.equinox.framework-1884561417adb816aa420eddd328862672c5767b.tar.gz
rt.equinox.framework-1884561417adb816aa420eddd328862672c5767b.tar.xz
rt.equinox.framework-1884561417adb816aa420eddd328862672c5767b.zip
Bug 155996 Old version of installed bundle gets loaded (was: LinkageError on TextEdit)
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/PackageAdminImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/PackageAdminImpl.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/PackageAdminImpl.java
index 9cd816739..6fbe64c45 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/PackageAdminImpl.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/PackageAdminImpl.java
@@ -176,13 +176,13 @@ public class PackageAdminImpl implements PackageAdmin {
BundleDescription description = bundles[i].getBundleDescription();
if (description != null && description.getBundleId() != 0 && !results.contains(description))
results.add(description);
- // add in any singleton bundles if needed
+ // add in any bundles that have the same symbolic name see bug (169593)
AbstractBundle[] sameNames = framework.bundles.getBundles(bundles[i].getSymbolicName());
if (sameNames != null && sameNames.length > 1) {
for (int j = 0; j < sameNames.length; j++)
if (sameNames[j] != bundles[i]) {
BundleDescription sameName = sameNames[j].getBundleDescription();
- if (sameName != null && sameName.getBundleId() != 0 && sameName.isSingleton() && !results.contains(sameName))
+ if (sameName != null && sameName.getBundleId() != 0 && !results.contains(sameName))
results.add(sameName);
}
}

Back to the top