Community
Participate
Working Groups
If one detaches an object and reattaches it, with no savepoint in between, then rolls the tx back, undoing both the reattachment and the detachment, the net effect should be no change. But actually after the rollback the object that was detached/reattached will no longer be present in the views "objects" collection. Requesting it on the basis of its CDOID will produce it in the correct state, but it'll be a new instance which will newly be added to the objects collection, not the instance that was originally detached-then-reattached.
I have a test and a patch for this, but currently I can't SSH to the CVS server, so I can't do a CVS diff. To be continued.
Created attachment 167684 [details] Patch for 3.0 Patch includes testcase
Created attachment 167687 [details] Patch v2 - ready to be committed Optimized the reattachedNotDetached check with the map keys as discussed offline.
Committed to HEAD
Created attachment 168080 [details] Cleaned up the unit test
Reopening to trigger review of the cleaned up unit test I just attached.
Committed to HEAD.
Available in 3.0 GA: http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/