Browse Source

fix for concurrent access to list exception for rhino testcase

The original script added tasks to the current target.
This is not a good idea, as an the task list of the target is being walked.
A change made recently uses an iterator instead of an enumerator to walk the list.
The iterator picks up the fact that the list has been changed
and causes the concurrent access exception.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274772 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 22 years ago
parent
commit
28c5ebe193
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/etc/testcases/taskdefs/optional/script.xml

+ 1
- 1
src/etc/testcases/taskdefs/optional/script.xml View File

@@ -10,7 +10,7 @@

for (i=1; i<=10; i++) {
echo = testproject.createTask("echo");
setup1.addTask(echo);
example1.addTask(echo);
echo.setMessage(i*i);
}



Loading…
Cancel
Save