empire-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Reiher <rei...@esteam.de>
Subject AW: multithreaded acces to SimpleDateFormat
Date Thu, 05 Feb 2009 11:02:07 GMT
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:francisdb@gmail.com]
> Gesendet: Dienstag, 27. Januar 2009 20:54
> An: empire-db-dev@incubator.apache.org
> 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.

Mime
View raw message