[hibernate-dev] [Doc-Bug?] Hibernate Tutorial 1.4 -> SimpleDateFormat not synchronized
Christian Bauer
christian.bauer at jboss.com
Fri Oct 13 12:19:12 EDT 2006
On Oct 13, 2006, at 6:07 PM, andresgr wrote:
> 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.
Already fixed a long time ago in 3.2 branch.
More information about the hibernate-dev
mailing list