[hibernate-dev] [Doc-Bug?] Hibernate Tutorial 1.4 -> SimpleDateFormat not synchronized
andresgr
angoro at gmail.com
Fri Oct 13 12:07:29 EDT 2006
Hi.
In section 1.4 of hibernate tutorial we can read:
"The dateFormatter is a tool we'll need later to convert Date objects
from and to strings. It makes sense to only have one formatter as a
member of the servlet."
But in the javadoc from SimpleDateFormat we can read:
"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."
I think this should be fixed.
--
-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.
http://coyotevil.blogspot.com
More information about the hibernate-dev
mailing list