FELIX-4047 -  Unable to single valued (String) array property

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1479335 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/annotations/changelog.txt b/scrplugin/annotations/changelog.txt
index b1df35c..46e465e 100644
--- a/scrplugin/annotations/changelog.txt
+++ b/scrplugin/annotations/changelog.txt
@@ -1,3 +1,9 @@
+ Changes from 1.9.4 to 1.9.2
+----------------------------
+**
+    * [FELIX-4047] -  Unable to single valued (String) array property
+
+
  Changes from 1.9.2 to 1.9.0
 ----------------------------
 ** Bug
diff --git a/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java b/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java
index e318311..e76f1ec 100644
--- a/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java
+++ b/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java
@@ -438,6 +438,13 @@
                 prop.setCardinality(0);
             }
 
+            if ( prop.getValue() != null ) {
+                if ( prop.getUnbounded() == PropertyUnbounded.ARRAY || prop.getUnbounded() == PropertyUnbounded.VECTOR ) {
+                    prop.setMultiValue(new String[] {prop.getValue()});
+                } else if ( prop.getCardinality() < -1 || prop.getCardinality() > 1 ) {
+                    prop.setMultiValue(new String[] {prop.getValue()});
+                }
+            }
             // options
             final ScannedAnnotation[] options = (ScannedAnnotation[])ad.getValue("options");
             if (options != null) {