| Summary: | [Legacy] CDOLegacy Wrapper should not set opposite references when detaching bi-directional references | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Martin Fluegge <martin.fluegge> | ||||||||||
| Component: | cdo.legacy | Assignee: | Martin Fluegge <martin.fluegge> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | Flags: | stepper:
review+
|
||||||||||
| Version: | 4.0 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Martin Fluegge
Created attachment 173150 [details] Patch v1 This one solves the problem but leads to some trouble in the testcases for bug 251263. As far as I remember I introduced the oppsite alignment in the post detach because legacy failures in the test case. So the patch is just a reminder for me. Created attachment 173288 [details]
Test v1
Here is a patch to validate the problem.
Created attachment 173311 [details] Patch v2 In the end the problem was pretty easy to solve. I simply must not handle containment references when calling cdoInternalPostDetach(). As a side note: This patch also fixes the problems in Bug 318347, though the test logic of this bug is still questionable. Created attachment 173312 [details]
Test v2
Here's a test to validate the patch.
Committed to HEAD. Available in R20110608-1407 |