Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2006-05-03 09:35:59 -0400
committerThomas Watson2006-05-03 09:35:59 -0400
commit7d4a6487ad3e933183c1a8c5ff3775f8e691770c (patch)
treea87efb6e215f51dbf047bee32c26a3e0a7c7fea4
parentfaa6c4474eb347f4f6a7ab700a31a1814b955e2d (diff)
downloadrt.equinox.framework-7d4a6487ad3e933183c1a8c5ff3775f8e691770c.tar.gz
rt.equinox.framework-7d4a6487ad3e933183c1a8c5ff3775f8e691770c.tar.xz
rt.equinox.framework-7d4a6487ad3e933183c1a8c5ff3775f8e691770c.zip
Bug 139776 PDE gets confused when framework fragments export packages
-rw-r--r--bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java
index 9f3594871..5cea1935b 100644
--- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java
+++ b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java
@@ -11,6 +11,7 @@
package org.eclipse.osgi.internal.module;
import java.util.*;
+import org.eclipse.osgi.internal.resolver.ExportPackageDescriptionImpl;
import org.eclipse.osgi.service.resolver.*;
import org.osgi.framework.Constants;
@@ -293,7 +294,11 @@ public class ResolverBundle extends VersionSupplier {
}
private boolean isExported(String packageName) {
- return getExport(packageName) != null;
+ ResolverExport export = getExport(packageName);
+ if (export == null)
+ return false;
+ // let exports from a bundle manifest be exported in addition to the ones from the vm profile
+ return 0 > ((Integer) export.getExportPackageDescription().getDirective(ExportPackageDescriptionImpl.EQUINOX_EE)).intValue();
}
private boolean isRequired(String bundleName) {

Back to the top