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

Bug 332194

Summary: Dangling cross-references remain after deletion.
Product: [Modeling] MMT.ATL Reporter: Salvador Martínez <salva.martinez.perez>
Component: emfvmAssignee: mmt-atl.toolkit-inbox <mmt-atl.toolkit-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Salvador Martínez CLA 2010-12-09 03:48:49 EST
the method "public void delete(AbstractStackFrame frame, Object modelElement)" in org.eclipse.m2m.atl.engine.emfvm.adapter.EMFModelAdapter does not remove cross-references that may point to the removed element.
Consequently a "object [...] is not contained in a resource" error will be shown on the console when serializing to XMI.

Although, the XMI file will be correct because EMF simply does not serialize the dangling edge, this is problematic in the case when the in-memory model is reused without serialization-deserialization.