peterreilly 2003/07/04 12:20:53 Modified: src/etc/testcases/taskdefs/optional script.xml Log: 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. Revision Changes Path 1.3 +1 -1 ant/src/etc/testcases/taskdefs/optional/script.xml Index: script.xml =================================================================== RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/optional/script.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- script.xml 21 Nov 2002 10:06:13 -0000 1.2 +++ script.xml 4 Jul 2003 19:20:53 -0000 1.3 @@ -10,7 +10,7 @@ for (i=1; i<=10; i++) { echo = testproject.createTask("echo"); - setup1.addTask(echo); + example1.addTask(echo); echo.setMessage(i*i); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]