Browse Source

Arrays.copyOf is too new for 1.9.x branch

master
Stefan Bodewig 8 years ago
parent
commit
281d918708
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java

+ 2
- 1
src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskTest.java View File

@@ -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();
}



Loading…
Cancel
Save