ServiceRegistry is not thread-safe
----------------------------------
Key: HHH-5866
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5866
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 4.0.0.Alpha1
Reporter: Emmanuel Bernard
ServiceRegistryImpl uses a HashMap which is not thread-safe.
Services can be initialized lazily which means several threads can end up asking for the
same service in //
The implementation needs to guard against that.
note that using a ConcurrentHashMap is not good enough as we probably don't want the
same service type to be initialized multiple times.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira