[FELIX-4987] Make sure we don’t consider fragments for package consistency checking during dynamic resolution
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1696846 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/resolver/src/main/java/org/apache/felix/resolver/Candidates.java b/resolver/src/main/java/org/apache/felix/resolver/Candidates.java
index 28a1b56..bfa80c6 100644
--- a/resolver/src/main/java/org/apache/felix/resolver/Candidates.java
+++ b/resolver/src/main/java/org/apache/felix/resolver/Candidates.java
@@ -132,7 +132,10 @@
{
res = ((WrappedResource) res).getDeclaredResource();
}
- hosts.put(res, getWrappedHost(res));
+ if (!Util.isFragment(res))
+ {
+ hosts.put(res, getWrappedHost(res));
+ }
}
for (Capability cap : m_dependentMap.keySet())
{
@@ -141,7 +144,10 @@
{
res = ((WrappedResource) res).getDeclaredResource();
}
- hosts.put(res, getWrappedHost(res));
+ if (!Util.isFragment(res))
+ {
+ hosts.put(res, getWrappedHost(res));
+ }
}
return hosts;
}