Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 448398

Summary: Sometimes a model element loses its LazyCrossReferencer adapter after changing the container
Product: [Modeling] Sirius Reporter: Mickael LANOE <mickael.lanoe>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: laurent.redor, pierre-charles.david
Version: 1.0.1Keywords: triaged
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mickael LANOE CLA 2014-10-22 11:54:05 EDT
In a particular context, some model elements lost there LazyCrossReferencer after changing the container. 

The LazyCrossReferencer adapter is removed from a model element on the REMOVE/UNSET notification and added on the ADD/SET notification.

In this case, when the container of a model element is changed, the ADD/SET notification is called before the REMOVE/UNSET notification. So the LazyCrossReferencer adapter no longer exists in the adapter list of the model element.
Comment 2 Laurent Redor CLA 2014-10-23 12:27:25 EDT
The issue is reopened, it causes some unexpected regression on JUnit tests and needs further investigation.
Comment 3 Mickael LANOE CLA 2014-11-05 07:47:27 EST
This issue was fixed in other way thank to  https://bugs.eclipse.org/bugs/show_bug.cgi?id=449045
Comment 4 Pierre-Charles David CLA 2014-12-12 10:16:54 EST
Available in Sirius 2.0.1.