Effectively rollback FELIX-2466 since OSGi R4.3 now allows
arbitrary attributes to be passed through from bundle header.
(FELIX-2950)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1143451 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java b/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java
index 839edd5..a8d9f1a 100644
--- a/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java
+++ b/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java
@@ -1267,14 +1267,13 @@
 
             // Create a require capability and return it.
             String symName = (String) clauses.get(0).m_paths.get(0);
-            Map<String, Object> attrs = new HashMap<String, Object>(2);
-            attrs.put(BundleRevision.BUNDLE_NAMESPACE, symName);
-            attrs.put(Constants.BUNDLE_VERSION_ATTRIBUTE, bundleVersion);
+            clauses.get(0).m_attrs.put(BundleRevision.BUNDLE_NAMESPACE, symName);
+            clauses.get(0).m_attrs.put(Constants.BUNDLE_VERSION_ATTRIBUTE, bundleVersion);
             return new BundleCapabilityImpl(
                 owner,
                 BundleRevision.BUNDLE_NAMESPACE,
                 clauses.get(0).m_dirs,
-                attrs);
+                clauses.get(0).m_attrs);
         }
 
         return null;