Community
Participate
Working Groups
As it has been discussed on the forum : http://www.eclipse.org/forums/index.php/t/217079/ it is possible to lock detached elements using a CDOTransactionHandler1. JUnit tests should be written to ensure that this usecase works correctly
Created attachment 200903 [details] Fix It turns out that TRANSIENT (detached) objects can not be locked through CDOObject.cdoXyzLock().lock() because they have no view pointer anymore. This situation is detected and an IllegalStateException thrown with the hint to cll CDOView.lockObjects() instead.
Test is in org.eclipse.emf.cdo.tests.LockingManagerTest.testLockDetached()
Created attachment 200922 [details] Fix v2
Committed revision 8864
Closing.