ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: cvs commit: ant/src/testcases/org/apache/tools/mail MailMessa
Date Thu, 21 Aug 2003 19:16:18 GMT
> -----Original Message-----
> From: Antoine Levy-Lambert []
> Sent: Thursday, August 21, 2003 2:13 PM
> To: Ant Developers List
> Subject: Re: cvs commit: ant/src/testcases/org/apache/tools/mail
> 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:
For additional commands, e-mail:

View raw message