diff options
author | Thomas Watson | 2011-10-28 18:40:04 +0000 |
---|---|---|
committer | Thomas Watson | 2011-10-28 18:40:04 +0000 |
commit | db46b8ee15ad1cab34375afb12f00e1e0bd66583 (patch) | |
tree | f9dd7d9de8da614edb5d7eb36984af87553b201c | |
parent | f3e6918dcec0f1c0f0d6e4303f3cf6e1049a03e4 (diff) | |
download | rt.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.java | 6 |
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$ + } } |