Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-09-11 17:50:52 +0000
committerThomas Watson2013-09-11 17:50:52 +0000
commitaaaf7ccb4f8e380cabe99d09085f5b09b8ad531a (patch)
treea015efec1f5b6663140f36f336fb47ffbdedd2d7
parente639431d3aa3ccabcb40ea34a6e02e7c009a699c (diff)
downloadrt.equinox.framework-aaaf7ccb4f8e380cabe99d09085f5b09b8ad531a.tar.gz
rt.equinox.framework-aaaf7ccb4f8e380cabe99d09085f5b09b8ad531a.tar.xz
rt.equinox.framework-aaaf7ccb4f8e380cabe99d09085f5b09b8ad531a.zip
Bug 404934 - [RFC 198] system bundle and framework hooksI20130911-2000
- Pay attention to collision hooks for system bundle
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/OSGiFrameworkHooks.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/OSGiFrameworkHooks.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/OSGiFrameworkHooks.java
index 22ea4a5d7..3046a6d2d 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/OSGiFrameworkHooks.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/OSGiFrameworkHooks.java
@@ -80,11 +80,13 @@ class OSGiFrameworkHooks {
}
private void notifyCollisionHooks(final int operationType, final Bundle target, Collection<Bundle> collisionCandidates) {
- if (operationType == CollisionHook.INSTALLING && target.getBundleId() == 0) {
- // Make a copy of the collisions only for calling the hooks;
- // Any removals from hooks are ignored in this case
- collisionCandidates = new ArrayList<Bundle>(collisionCandidates);
- }
+ // TODO open question in the specification for ignoring collision hooks for the system bundle
+ // For now we will NOT ignore them
+ //if (operationType == CollisionHook.INSTALLING && target.getBundleId() == 0) {
+ // Make a copy of the collisions only for calling the hooks;
+ // Any removals from hooks are ignored in this case
+ // collisionCandidates = new ArrayList<Bundle>(collisionCandidates);
+ //}
final Collection<Bundle> shrinkable = new ShrinkableCollection<Bundle>(collisionCandidates);
if (System.getSecurityManager() == null) {
notifyCollisionHooksPriviledged(operationType, target, shrinkable);

Back to the top