Properly convert a version range property type. (FELIX-1155)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@774874 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java
index 69e1651..8d43c4e 100644
--- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java
+++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/PropertyImpl.java
@@ -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);
         }