| Summary: | Locking detached elements | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Alex Lagarde <alex.lagarde> | ||||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | caspar_d | ||||||
| Version: | 4.1 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Alex Lagarde
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. |