Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-07-09 15:48:48 +0000
committerThomas Watson2013-07-09 15:48:48 +0000
commit273899e0bcff65b7ee939e66c3bcb7127487d484 (patch)
tree1a7d9d6fc6244a56be3ddfc366101b992c83fa85 /bundles
parent2541cec4d61cf92c345012d685346333e5f224b9 (diff)
downloadrt.equinox.framework-273899e0bcff65b7ee939e66c3bcb7127487d484.tar.gz
rt.equinox.framework-273899e0bcff65b7ee939e66c3bcb7127487d484.tar.xz
rt.equinox.framework-273899e0bcff65b7ee939e66c3bcb7127487d484.zip
Bug 412598 - Should use MANIFEST_ERROR type when native capability is specified
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/builders/OSGiManifestBuilderFactory.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/builders/OSGiManifestBuilderFactory.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/builders/OSGiManifestBuilderFactory.java
index 3935ce93b..871302cef 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/builders/OSGiManifestBuilderFactory.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/builders/OSGiManifestBuilderFactory.java
@@ -446,7 +446,7 @@ public final class OSGiManifestBuilderFactory {
Map<String, String> directives = getDirectives(provideElement);
for (String namespace : namespaces) {
if (PROHIBITED_CAPABILITIES.contains(namespace) || (chechSystemCapabilities && SYSTEM_CAPABILITIES.contains(namespace))) {
- throw new BundleException("A bundle is not allowed to define a capability in the " + namespace + " name space."); //$NON-NLS-1$ //$NON-NLS-2$
+ throw new BundleException("A bundle is not allowed to define a capability in the " + namespace + " name space.", BundleException.MANIFEST_ERROR); //$NON-NLS-1$ //$NON-NLS-2$
}
builder.addCapability(namespace, directives, attributes);
@@ -683,7 +683,7 @@ public final class OSGiManifestBuilderFactory {
// do another sanity check
FilterImpl.newInstance(filterSpec);
} catch (InvalidSyntaxException e1) {
- throw new BundleException("Error converting required execution environment.", e1); //$NON-NLS-1$
+ throw new BundleException("Error converting required execution environment.", BundleException.MANIFEST_ERROR, e1); //$NON-NLS-1$
}
}
return filterSpec;
@@ -808,7 +808,7 @@ public final class OSGiManifestBuilderFactory {
try {
filter.append('(').append(filterAttribute).append("~=").append(Storage.sanitizeFilterInput(attrAlias)).append(')'); //$NON-NLS-1$
} catch (InvalidSyntaxException e) {
- throw new BundleException("Bad native attribute: " + attrAlias, e); //$NON-NLS-1$
+ throw new BundleException("Bad native attribute: " + attrAlias, BundleException.MANIFEST_ERROR, e); //$NON-NLS-1$
}
}
}

Back to the top