You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2014/10/12 00:38:05 UTC

svn commit: r1631134 - /db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java

Author: myrnavl
Date: Sat Oct 11 22:38:05 2014
New Revision: 1631134

URL: http://svn.apache.org/r1631134
Log:
DERBY-6563; NOT elimination for CASE expressions is broken
   replacing usage of Java 1.6 method Arrays.copyOf with System.arraycopy call as 10.10 supports Java 1.5.

Modified:
    db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java

Modified: db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java?rev=1631134&r1=1631133&r2=1631134&view=diff
==============================================================================
--- db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java (original)
+++ db/derby/code/branches/10.10/java/testing/org/apache/derbyTesting/functionTests/tests/lang/CaseExpressionTest.java Sat Oct 11 22:38:05 2014
@@ -469,7 +469,9 @@ public class CaseExpressionTest extends 
             Object[] row = expectedRows[i];
 
             if (row[4] == Boolean.TRUE) {
-                rows.add(Arrays.copyOf(row, 3));
+                Object[] tmprow = new Object[3];
+                System.arraycopy(row, 0, tmprow, 0, 3);
+                rows.add(tmprow);
             }
         }