FELIX-3793 :  Property of type Character must use unicode value 

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1415585 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
index e520db1..95f5b12 100644
--- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
+++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/ComponentDescriptorIO.java
@@ -564,7 +564,13 @@
                         }
 
                         if (attributes.getValue(PROPERTY_ATTR_VALUE) != null) {
-                            prop.setValue(attributes.getValue(PROPERTY_ATTR_VALUE));
+                            if ( prop.getType() == PropertyType.Char || prop.getType() == PropertyType.Character ) {
+                                final int val = Integer.valueOf(attributes.getValue(PROPERTY_ATTR_VALUE));
+                                final Character c = Character.valueOf((char)val);
+                                prop.setValue(c.toString());
+                            } else {
+                                prop.setValue(attributes.getValue(PROPERTY_ATTR_VALUE));
+                            }
                             this.currentClass.add(prop);
                         } else {
                             // hold the property pending as we have a multi value
@@ -689,6 +695,11 @@
                         int index = 0;
                         while (st.hasMoreTokens()) {
                             values[index] = st.nextToken();
+                            if ( this.pendingProperty.getType() == PropertyType.Char || this.pendingProperty.getType() == PropertyType.Character ) {
+                                final int val = Integer.valueOf(values[index]);
+                                final Character c = Character.valueOf((char)val);
+                                values[index] = c.toString();
+                            }
                             index++;
                         }
                         this.pendingProperty.setMultiValue(values);