> -----Original Message----- > From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 21, 2003 2:13 PM > To: Ant Developers List > Subject: Re: cvs commit: ant/src/testcases/org/apache/tools/mail > MailMessageTest.java > > Isn't there a danger in using a non-synchronized class ? > Otherwise I can gladly switch to ArrayList.
Perhaps... But can the same task really be accessed from multiple threads? Even with a <parallel>, you can only created different instances of similar tasks. Unless you create threads explicitly in your Java code, but then I suspect all bets are off. You can still write 'List dummy = new Vector()', and dummy will be a synchronized list, in any case. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]