Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B3EAB200B7F for ; Sun, 11 Sep 2016 15:12:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B2A5C160AD4; Sun, 11 Sep 2016 13:12:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 02E1A160AAA for ; Sun, 11 Sep 2016 15:12:03 +0200 (CEST) Received: (qmail 2283 invoked by uid 500); 11 Sep 2016 13:12:03 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 2272 invoked by uid 99); 11 Sep 2016 13:12:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Sep 2016 13:12:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0499BE053F; Sun, 11 Sep 2016 13:12:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bodewig@apache.org To: notifications@ant.apache.org Date: Sun, 11 Sep 2016 13:12:02 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] ant git commit: Arrays.copyOf is too new for 1.9.x branch archived-at: Sun, 11 Sep 2016 13:12:04 -0000 Repository: ant Updated Branches: refs/heads/master 3f552b1e5 -> e843dd287 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/master Commit: 281d91870828fc1e8ec2b7235657c6ca5145f95a Parents: e95fe11 Author: Stefan Bodewig Authored: Sun Sep 11 15:10:44 2016 +0200 Committer: Stefan Bodewig 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(); }