Image

Imagebanana wrote in Imagejava_dev alarmed

Date synch-ing

In an article on thread safety (linked from a previous thread), I was alarmed to read this paragraph.
As an example of this pitfall, the class java.text.SimpleDateFormat is not thread-safe, but it wasn't until the 1.4 JDK that this was documented in the Javadoc. How many developers mistakenly created a static instance of SimpleDateFormat and used it from multiple threads, unaware that their programs were not going to behave correctly under heavy load? Don't do this to your customers or colleagues!
I bet I've done that a few times. Does anyone know if this applies to other DateFormat classes?