See:  http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html
---------------
Synchronization

Date formats are not synchronized. It is recommended to create
separate format instances for each thread. If multiple threads access
a format concurrently, it must be synchronized externally.
---------------


Since SimpleDateFormat is not thread-safe, do I potentially have a bug
when using TimeHelpers?

For example, see the Chat.scala example -- see "line" where it binds
"when" -> hourFormat(c.when)...  Is there a potential problem there
that multiple threads will be running the snippet and accessing the
same underlying SimpleDateFormat?
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to