commit | 5c892bc57a49179e1c1fbe37fbf291c478fd4f37 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Apr 24 20:15:44 2014 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Apr 24 20:15:44 2014 +0000 |
tree | 1ea9040204dc3e4edfda6b0db20af467dbb25698 | |
parent | 286d55b8e6c663feb68a28ae59b5a00482e8f9bf [diff] |
Apply patch FELIX-4428 to fix bug in handling of fragment candidate capabilities. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1589866 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 257ba31..d3cce42 100644 --- a/resolver/src/main/java/org/apache/felix/resolver/Candidates.java +++ b/resolver/src/main/java/org/apache/felix/resolver/Candidates.java
@@ -473,6 +473,9 @@ // a reference to a synthesized resource with attached // fragments so we can correctly calculate its package // space. + // Must remove the fragment candidate because we must + // only use hosted capabilities for package namespace + candidates.remove(fragCand); rc.insertHostedCapability( candidates, new WrappedCapability(