Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2011-10-28 18:40:04 +0000
committerThomas Watson2011-10-28 18:40:04 +0000
commitdb46b8ee15ad1cab34375afb12f00e1e0bd66583 (patch)
treef9dd7d9de8da614edb5d7eb36984af87553b201c
parentf3e6918dcec0f1c0f0d6e4303f3cf6e1049a03e4 (diff)
downloadrt.equinox.framework-db46b8ee15ad1cab34375afb12f00e1e0bd66583.tar.gz
rt.equinox.framework-db46b8ee15ad1cab34375afb12f00e1e0bd66583.tar.xz
rt.equinox.framework-db46b8ee15ad1cab34375afb12f00e1e0bd66583.zip
Bug 362349 - [composite] Should prevent the surrogate bundle from
uninstalling
-rw-r--r--bundles/org.eclipse.osgi/core/composite/org/eclipse/osgi/internal/composite/SurrogateImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/core/composite/org/eclipse/osgi/internal/composite/SurrogateImpl.java b/bundles/org.eclipse.osgi/core/composite/org/eclipse/osgi/internal/composite/SurrogateImpl.java
index c482105c5..47f58ad62 100644
--- a/bundles/org.eclipse.osgi/core/composite/org/eclipse/osgi/internal/composite/SurrogateImpl.java
+++ b/bundles/org.eclipse.osgi/core/composite/org/eclipse/osgi/internal/composite/SurrogateImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2009 IBM Corporation and others.
+ * Copyright (c) 2008, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -95,4 +95,8 @@ public class SurrogateImpl extends CompositeBase implements SurrogateBundle {
protected void stopHook() {
((CompositeModule) getCompanionBundle()).stopped(this);
}
+
+ public void uninstall() throws BundleException {
+ throw new BundleException("Cannot uninstall surrogate bundles", BundleException.INVALID_OPERATION); //$NON-NLS-1$
+ }
}

Back to the top