Fixed a bug that was causing the resolver to match against invalid candidates.
This bug was introduced during the resolver refactoring for require-bundle.


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@555064 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/Requirement.java b/framework/src/main/java/org/apache/felix/framework/util/manifestparser/Requirement.java
index 2e14740..187d80a 100644
--- a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/Requirement.java
+++ b/framework/src/main/java/org/apache/felix/framework/util/manifestparser/Requirement.java
@@ -162,14 +162,6 @@
             // Get current attribute from this import package.
             R4Attribute reqAttr = m_attributes[reqAttrIdx];
 
-            // Ignore version attribute, since it is a special case that
-            // has already been compared using isVersionInRange() before
-            // the call to this method was made.
-            if (reqAttr.getName().equals(Constants.VERSION_ATTRIBUTE))
-            {
-                continue;
-            }
-
             // Check if the export package has the same attribute.
             boolean found = false;
             for (int capAttrIdx = 0;