ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject ant git commit: Arrays.copyOf is too new for 1.9.x branch
Date Sun, 11 Sep 2016 13:11:17 GMT
Repository: ant
Updated Branches:
  refs/heads/1.9.x e95fe1109 -> 281d91870


Arrays.copyOf is too new for 1.9.x branch


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/281d9187
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/281d9187
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/281d9187

Branch: refs/heads/1.9.x
Commit: 281d91870828fc1e8ec2b7235657c6ca5145f95a
Parents: e95fe11
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Sun Sep 11 15:10:44 2016 +0200
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Sun Sep 11 15:10:44 2016 +0200

----------------------------------------------------------------------
 .../apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/281d9187/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
----------------------------------------------------------------------
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
index 08daa0e..470d8bc 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java
@@ -563,7 +563,8 @@ public class JUnitTaskTest {
 
         @Override
         public Process exec(Project project, String[] cmd, String[] env, File workingDir)
throws IOException {
-            this.cmd = Arrays.copyOf(cmd, cmd.length);
+            this.cmd = new String[cmd.length];
+            System.arraycopy(cmd, 0, this.cmd, 0, cmd.length);
             return new MockProcess();
         }
 


Mime
View raw message