Bug 421706 - Can't start Eclipse M3 after installing "everything"
- Fix Felix bug to allow candidates from already resolved fragments
diff --git a/bundles/org.eclipse.osgi/container/src/org/apache/felix/resolver/Candidates.java b/bundles/org.eclipse.osgi/container/src/org/apache/felix/resolver/Candidates.java
index a652ddc..257ba31 100644
--- a/bundles/org.eclipse.osgi/container/src/org/apache/felix/resolver/Candidates.java
+++ b/bundles/org.eclipse.osgi/container/src/org/apache/felix/resolver/Candidates.java
@@ -276,6 +276,12 @@
// not optional, then record and throw a resolve exception.
else if (candidates.isEmpty() && !Util.isOptional(req))
{
+ if (Util.isFragment(resource) && rc.getWirings().containsKey(resource))
+ {
+ // This is a fragment that is already resolved and there is no unresolved hosts to attach it to.
+ m_populateResultCache.put(resource, Boolean.TRUE);
+ return;
+ }
String msg = "Unable to resolve " + resource
+ ": missing requirement " + req;
if (rethrow != null)