]
Gail Badner resolved HHH-2795.
------------------------------
Resolution: Fixed
Fixed in trunk / 3.2
CollectionLoadContexts for empy collections are not removed until
PersistenceContext.clear()
--------------------------------------------------------------------------------------------
Key: HHH-2795
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2795
Project: Hibernate3
Issue Type: Bug
Affects Versions: 3.2.5
Reporter: Gail Badner
Assignee: Gail Badner
Fix For: 3.2.6, 3.3
A CollectionLoadContext is created for an empty ResultSet but is not registered with
LoadContexts. This causes CollectionLoadContexts.endLoadingCollection() too return early
without removing the CollectionLoadContext().
As a result, the CollectionLoadContext is not removed until PersistenceContext.clear() is
called which calls LoadContexts.cleanup(). When a CollectionLoadContext is still in
present, LoadContexts.cleanup() writes a warning to the log, as mentioned in HHH-2631.
This is reproduced by
org.hibernate.engine.loading.MergeTest.testNoExtraUpdatesOnMergeWithCollection() as well
as other unit tests.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: