hi,
I double-checked and the statement below is not correct.
Calendar.getInstance is thread-safe as it will return a different
instance each time. Similarly DateFormat.getDateTimeInstance will return
a different instance each time too. Sorry it was a lapsus-mentis :)
On the other hand, continuously creating Calendar and SimpleDateFormat
instances is very costly performance-wise, depending on the calling
counts it would be maybe worthwhile consider using ThreadLocal and have
one Singleton instance per thread.
regards,
Giovanni
I found XWorkBasicConverter.java is making thread-unsafe use of the
mutable Calendar and SimpleDateFormat singletons, this could explain the
race-condition issue.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]