Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2018-02-08 20:01:24 +0000
committerStephan Herrmann2018-02-08 20:01:24 +0000
commitc2fa01165b8a6879b5763a6330f89d82e84573a7 (patch)
tree89bda3d2e5a71e89cf2af1ce90e9c50b23de8130
parent5bc28dc89944fcd807a0d9817669bf7b37783d52 (diff)
downloadorg.eclipse.objectteams-c2fa01165b8a6879b5763a6330f89d82e84573a7.tar.gz
org.eclipse.objectteams-c2fa01165b8a6879b5763a6330f89d82e84573a7.tar.xz
org.eclipse.objectteams-c2fa01165b8a6879b5763a6330f89d82e84573a7.zip
Bug 530909 - Bogus "case bundle SELF cannot be resolved"
-rw-r--r--plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java
index 3fc838458..184ccd266 100644
--- a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java
+++ b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBindingRegistry.java
@@ -142,6 +142,7 @@ public class AspectBindingRegistry {
bindings.add(binding);
// TODO(SH): maybe enforce that every bundle id is given only once?
+ boolean isSelfAdaptation = baseBundleId.toUpperCase().equals(SELF);
//teams:
try {
for (int j = 0, count = 0; count < teamCount; j++) {
@@ -160,7 +161,7 @@ public class AspectBindingRegistry {
}
}
- String realBaseBundleId = baseBundleId.toUpperCase().equals(SELF) ? aspectBundleId : baseBundleId;
+ String realBaseBundleId = isSelfAdaptation ? aspectBundleId : baseBundleId;
addBindingForBaseBundle(realBaseBundleId, binding);
addBindingForAspectBundle(aspectBundleId, binding);
hook.setBaseTripWire(packageAdmin, realBaseBundleId, baseBundle);
@@ -169,7 +170,7 @@ public class AspectBindingRegistry {
} catch (Throwable t) {
log(t, "Invalid aspectBinding extension");
}
- if (packageAdmin != null && aspectBundle != null && !binding.hasScannedTeams) {
+ if (packageAdmin != null && aspectBundle != null && !binding.hasScannedTeams && !isSelfAdaptation) {
@SuppressWarnings("deprecation")
Bundle[] baseBundles = packageAdmin.getBundles(baseBundleId, null);
if (baseBundles == null || baseBundles.length == 0 || (baseBundles[0].getState() < Bundle.RESOLVED)) {

Back to the top