| Summary: | Dangling references exist after parsing XMI documents that reference other XMI documents | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Brendan <bberry> |
| Component: | cdo.core | Assignee: | Project Inbox <emf.cdo-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | saulius.tvarijonas |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Brendan
As an important note, I have additionally tried setting the extension mapping for the CDO resource set to use an XMIResourceFactory before loading. It may be useful to mention that some of the files in this test case are GMF Diagram documents. I "resolved" my situation through the following steps: 1. Parse the XMI resources into a basic ResourceSetImpl (without CDO backing) 2. Create a master XMI resource in the same resource set 3. Move the contents of each parsed XMI resource into the master resource 4. Invoke EcoreUtil.resolve() to update the URIs of the elements so that they all officially "live" in the master resource 5. Create a second master resource in the CDO resource set 6. Copy the contents of the XMI master into the CDO master 7. Invoke EcoreUtil.resolve() to update the URIs of the elements again 8. Create CDO resources to represent the original XMI resources (this is optional of course) 9. Transfer the contents of the CDO master into the individual CDO resources 10. Invoke EcoreUtil.resolve() one last time The resulting resource set has no duplicates and no dangling references. All cross-document references appear to be correct. Rebasing all outstanding 3.0 problem reports to version 3.0.1 Fixing wrong bug version. Moving all open problem reports to 4.0 Moving all open bug reports to 4.1 because the release is very near and it's hghly unlikely that there will be spare time to address 4.0 problems. Please make sure that your patches can be applied against the master branch and that your problem is not already fixed there!!! Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master. No activity or ping here for years. Please reopen this bug if you feel a need. |