Re: Date concurrency

2010-08-18 Thread Andrey Pavlenko
I would suggest to use ThreadLocal instead of overriding SimpleDateFormat. Something like this: private static final ThreadLocal LOCAL_DATE_FORMAT = new ThreadLocal() { protected Object initialValue() { return new SimpleDateFormat("MMddHHmmss"); }; }; p

Date concurrency

2010-08-16 Thread Charles O'Farrell
Hi Ivy Devs, Sorry to bother you, but we've run into some annoying issues with Ivy and concurrency (using ant parallel). For some unbelievably stupid reason SimpleDateFormat isn't thread safe. http://download-llnw.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html#synchronization Pleas