diff options
author | Hannes Wellmann | 2021-07-28 20:08:02 +0000 |
---|---|---|
committer | Lars Vogel | 2021-07-30 07:50:45 +0000 |
commit | 27aa1e2c54d958b39af762bc0566f1b9a85e4ef9 (patch) | |
tree | 22042c9d868d6256294ac048a7e29f78e64bdbbf | |
parent | 22b9df1b9daca3e0aeb4d15904757227d1006f38 (diff) | |
download | rt.equinox.framework-27aa1e2c54d958b39af762bc0566f1b9a85e4ef9.tar.gz rt.equinox.framework-27aa1e2c54d958b39af762bc0566f1b9a85e4ef9.tar.xz rt.equinox.framework-27aa1e2c54d958b39af762bc0566f1b9a85e4ef9.zip |
Bug 575125 - Only check BundleDescription's dependents for fragmentsY20210730-0530I20210730-1800
Change-Id: I4ef1fa0f231c80b78bba42ff14088624e397adf2
Signed-off-by: Hannes Wellmann <wellmann.hannes1@gmx.net>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/183528
Tested-by: Lars Vogel <Lars.Vogel@vogella.com>
Tested-by: Equinox Bot <equinox-bot@eclipse.org>
Reviewed-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java index 6d5fd3a1f..52f3b858b 100644 --- a/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java +++ b/bundles/org.eclipse.osgi.compatibility.state/src/org/eclipse/osgi/internal/resolver/StateImpl.java @@ -778,8 +778,8 @@ public abstract class StateImpl implements State { BundleDescription[] getFragments(final BundleDescription host) { final List<BundleDescription> fragments = new ArrayList<>(); synchronized (this.monitor) { - for (Iterator<BundleDescription> iter = bundleDescriptions.values().iterator(); iter.hasNext();) { - BundleDescription bundle = iter.next(); + BundleDescription[] dependents = host.getDependents(); + for (BundleDescription bundle : dependents) { HostSpecification hostSpec = bundle.getHost(); if (hostSpec != null) { |