Hi, I'd also recommend to remove the static fields and instantiate formats where needed. So go for it :-)
Greets Jörg > -----Ursprüngliche Nachricht----- > Von: Francis De Brabandere [mailto:[email protected]] > Gesendet: Dienstag, 27. Januar 2009 20:54 > An: [email protected] > Betreff: multithreaded acces to SimpleDateFormat > > ObjectUtils has static fields with SimpleDateFormat but as > SimpleDateFormat is not thread safe this is looking for trouble! > > http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=19a0c46af2fec6f7 > d2c4cd3c3757?bug_id=4264153 > http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html > > Is it ok if I remove them and instantiate formats where needed? or > does anybody see a better solution? > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house.
