From 28c5ebe193aaa79c6eecd72e2f97730e68c67a6a Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 4 Jul 2003 19:20:53 +0000 Subject: [PATCH] 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 --- src/etc/testcases/taskdefs/optional/script.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/testcases/taskdefs/optional/script.xml b/src/etc/testcases/taskdefs/optional/script.xml index 884dc5a01..fc54325db 100644 --- a/src/etc/testcases/taskdefs/optional/script.xml +++ b/src/etc/testcases/taskdefs/optional/script.xml @@ -10,7 +10,7 @@ for (i=1; i<=10; i++) { echo = testproject.createTask("echo"); - setup1.addTask(echo); + example1.addTask(echo); echo.setMessage(i*i); }