Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2011-06-08 18:09:56 +0000
committerThomas Watson2011-06-08 18:09:56 +0000
commit0e80c572ea7bdd9506e20df52e15b0d3ca09c75b (patch)
treef5ac65f0e04115172e83647aa941e07bec405bdb /bundles/org.eclipse.osgi/resolver
parent3c0f3c6b4324b8b7a0b9edb6bfdefff7893627f5 (diff)
downloadrt.equinox.framework-0e80c572ea7bdd9506e20df52e15b0d3ca09c75b.tar.gz
rt.equinox.framework-0e80c572ea7bdd9506e20df52e15b0d3ca09c75b.tar.xz
rt.equinox.framework-0e80c572ea7bdd9506e20df52e15b0d3ca09c75b.zip
Bug 346537 - weaving hooks that add dynamic imports do not reflect in the BundleWiring API until resolution
Diffstat (limited to 'bundles/org.eclipse.osgi/resolver')
-rw-r--r--bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
index ab7f8993f..1f6cfdd52 100644
--- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
+++ b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
@@ -1087,6 +1087,12 @@ public final class BundleDescriptionImpl extends BaseDescriptionImpl implements
}
}
}
+ ImportPackageSpecification[] addedDynamic = getAddedDynamicImportPackages();
+ for (ImportPackageSpecification dynamicImport : addedDynamic) {
+ BundleRequirement req = dynamicImport.getRequirement();
+ if (!requirements.contains(req))
+ requirements.add(req);
+ }
}
return requirements;
}

Back to the top