felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r774874 - /felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java
Date Thu, 14 May 2009 18:40:47 GMT
Author: rickhall
Date: Thu May 14 18:40:46 2009
New Revision: 774874

URL: http://svn.apache.org/viewvc?rev=774874&view=rev
Log:
Properly convert a version range property type. (FELIX-1155)

Modified:
    felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java

Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java?rev=774874&r1=774873&r2=774874&view=diff
==============================================================================
--- felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java
(original)
+++ felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java
Thu May 14 18:40:46 2009
@@ -80,7 +80,12 @@
 
     private Object convertType(String value)
     {
-        if ((m_type != null) && (m_type.equalsIgnoreCase(Resource.VERSION)))
+        if ((m_type != null) && m_type.equalsIgnoreCase(Resource.VERSION)
+            && (value.indexOf(',') > 0))
+        {
+            return VersionRange.parse(value);
+        }
+        else if ((m_type != null) && m_type.equalsIgnoreCase(Resource.VERSION))
         {
             return new Version(value);
         }



Mime
View raw message