| Summary: | [serializer] cross reference serializer should also compare object uri | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Knut Wannheden <knut.wannheden> | ||||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | mark.g.j.christiaens, sebastian.zarnekow | ||||||
| Version: | 1.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
||||||
| Target Milestone: | SR2 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Knut Wannheden
Created attachment 179251 [details]
suggested patch
Attached a patch implementing solution mentioned in description. Please review.
*** Bug 347419 has been marked as a duplicate of this bug. *** I assume a test case is easy to write if the linking service is decorated and returns proxies instead of real objects for local objects? Created attachment 201515 [details]
patch including unit test
The attached patch now includes a unit test.
Note that the patch only fixes the old serializer. The API of the new CrossReferenceSerializer doesn't have an INode parameter so I don't know how this patch could be applied there.
To me it looks like this issue is already addressed by the new serializer. It doesn't use the ILinkingService directly anymore but instead the IScopeProvider. I think that seems reasonable although it may not work for languages like Xtext which implement some special logic in the ILinkingService for certain references. Knut, could you please apply the patch for the old serializer? Fix pushed to master. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |