Author: rickhall
Date: Thu Jul 12 07:26:44 2007
New Revision: 555642

URL: http://svn.apache.org/viewvc?view=rev&rev=555642
Log:
Fixed another version matching-related issue that was uncovered due to
the last fix. The parser was not assigning a default version to exported
packages that did not specify a version, thus attempts to match 0.0.0
would fail.

Modified:
    
felix/trunk/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java

Modified: 
felix/trunk/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java?view=diff&rev=555642&r1=555641&r2=555642
==============================================================================
--- 
felix/trunk/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java
 (original)
+++ 
felix/trunk/framework/src/main/java/org/apache/felix/framework/util/manifestparser/ManifestParser.java
 Thu Jul 12 07:26:44 2007
@@ -766,6 +766,13 @@
                 }
             }
 
+            // Always add the default version if not specified.
+            if ((v == null) && (sv == null))
+            {
+                v = new R4Attribute(
+                    Constants.VERSION_ATTRIBUTE, Version.emptyVersion, false);
+            }
+
             // Ensure that only the "version" attribute is used and convert
             // it to the appropriate type.
             if ((v != null) || (sv != null))


Reply via email to