]
Emmanuel Bernard updated HHH-5866:
----------------------------------
Affects Version/s: (was: 4.0.0.Alpha1)
Fix Version/s: 4.0.0.Alpha1
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
Reporter: Emmanuel Bernard
Fix For: 4.0.0.Alpha1
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: