Bug 440439

Summary: A same node mapping cannot be reused as border and sub node in the same time
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: alex.lagarde
Version: 1.0.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Bug Depends on: 440315    
Bug Blocks:    

Description Maxime Porhel CLA 2014-07-25 10:13:53 EDT
Steps to reproduce: 
 . Get the Bug 440315 reproduction case
 . Open the diagram
 . The container has only sub nodes but its mapping references the class_node mapping as reused sub node mapping AND as resued bordered node mapping.

The EObjectCouple used to retrieve previous candidates is not sufficient as here the key used is (container, mapping) and we get the same key for a container and the mapping reused as sub node and/or reused as border nodes. We should discriminate this with the current feature referencing the refreshed mapping. 

And in the other places we use EObjectCouple, the same modification might be required to correclty discriminate both situations.
Comment 1 Alex Lagarde CLA 2014-07-25 10:24:41 EDT
Reproduced with Sirius 1.0.0 : the container only have 2 nodes as children and no bordered nodes