Skip to Content

SimpleDateFormat is not thread safe

I'm appaled to learn that DateFormat (and SimpleDateFormat) is not thread safe.

Not only that, but Sun has deemed any fixes too expensive to perform, so they won't fix it, but instead ask users to synchronize accesses to their DateFormatter.

If it really is too expensive to retrofit SimpleDateFormat to be thread safe, then at least give us an alternative implementation that is thread safe, so we can choose which one to use.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.