You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cl...@apache.org on 2012/09/20 11:02:57 UTC

svn commit: r1387916 - /felix/trunk/ipojo/manipulator/manipulator/src/test/java/test/DoubleArray.java

Author: clement
Date: Thu Sep 20 09:02:57 2012
New Revision: 1387916

URL: http://svn.apache.org/viewvc?rev=1387916&view=rev
Log:
Follow up ... forgot a file

Fix FELIX-3621
Correct computation of multi-dimension array:
- method id computation
- right arguments in the method metadata (element)
- add tests

Added:
    felix/trunk/ipojo/manipulator/manipulator/src/test/java/test/DoubleArray.java

Added: felix/trunk/ipojo/manipulator/manipulator/src/test/java/test/DoubleArray.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/manipulator/manipulator/src/test/java/test/DoubleArray.java?rev=1387916&view=auto
==============================================================================
--- felix/trunk/ipojo/manipulator/manipulator/src/test/java/test/DoubleArray.java (added)
+++ felix/trunk/ipojo/manipulator/manipulator/src/test/java/test/DoubleArray.java Thu Sep 20 09:02:57 2012
@@ -0,0 +1,25 @@
+package test;
+
+/**
+ * Checks a component with a double array
+ * To reproduce https://issues.apache.org/jira/browse/FELIX-3621
+ */
+public class DoubleArray {
+
+    public boolean start() {
+        System.out.println("Start");
+
+        int[][] matrix = new int[20][20];
+
+        this.testArray(matrix);
+
+        matrix[0][0] = 2;
+        return true;
+    }
+
+    private void testArray(int[][] matrix) {
+        System.out.println("Test Array");
+    }
+
+
+}