felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1465983 - in /felix/trunk/scrplugin/annotations: changelog.txt src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java
Date Tue, 09 Apr 2013 12:11:33 GMT
Author: cziegeler
Date: Tue Apr  9 12:11:33 2013
New Revision: 1465983

URL: http://svn.apache.org/r1465983
Log:
FELIX-3977 :  @Property: ArrayIndexOutOfBoundsException empty array default value 

Modified:
    felix/trunk/scrplugin/annotations/changelog.txt
    felix/trunk/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java

Modified: felix/trunk/scrplugin/annotations/changelog.txt
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/annotations/changelog.txt?rev=1465983&r1=1465982&r2=1465983&view=diff
==============================================================================
--- felix/trunk/scrplugin/annotations/changelog.txt (original)
+++ felix/trunk/scrplugin/annotations/changelog.txt Tue Apr  9 12:11:33 2013
@@ -1,3 +1,9 @@
+ Changes from 1.9.2 to 1.9.0
+----------------------------
+** Bug
+    * [FELIX-3977] -  @Property: ArrayIndexOutOfBoundsException empty array default value
 
+
+
  Changes from 1.9.0 to 1.8.0
 ----------------------------
 ** Bug

Modified: felix/trunk/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/felix/trunk/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java?rev=1465983&r1=1465982&r2=1465983&view=diff
==============================================================================
--- felix/trunk/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java
(original)
+++ felix/trunk/scrplugin/annotations/src/main/java/org/apache/felix/scrplugin/processing/SCRAnnotationProcessor.java
Tue Apr  9 12:11:33 2013
@@ -396,7 +396,7 @@ public class SCRAnnotationProcessor impl
                                 newValues[i] = Array.get(value, i).toString();
                             }
                             prop.setMultiValue(newValues);
-                            prop.setType(PropertyType.from(Array.get(value, 0).getClass()));
+                            prop.setType(PropertyType.from(fieldAnnotation.getAnnotatedField().getType().getComponentType()));
                         } else {
                             prop.setType(PropertyType.from(value.getClass()));
                             prop.setValue(value.toString());



Mime
View raw message