Bug 538650 - Create instance operation leads to changing other objects feature
Summary: Create instance operation leads to changing other objects feature
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-09-05 09:35 EDT by Yvan Lussaud CLA
Modified: 2020-03-24 03:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yvan Lussaud CLA 2018-09-05 09:35:53 EDT
- create a container mapping for an EClass that have a feature name for instance
- create a node mapping for a children of this class that also have a feature name
- create a creation tool for the children object
 - set the feature to a not existing value
 - set the name of the children

behavior:
 - a stack trace
 - the container name is changed

expected behavior:
 - a stack trace (or something prettier if possible)

My guess is the children is created successfully but when the containment feature can't be setted an exception is thrown skipping the change context to the created object, then the content of the create instance is executed in the container context.
Comment 1 Pierre-Charles David CLA 2018-09-05 11:55:06 EDT
Not sure it's exactly the same issue but it sounds related to something I tried to fix a while ago, see https://git.eclipse.org/r/c/68025.

IIRC, we decided not to merge this at the time because some existing modelers relied on the existing broken behavior, but I could be wrong, it was a while ago.
Comment 2 Pierre-Charles David CLA 2018-09-05 11:58:09 EDT
Actually, there was a ticket created for the other related issue that the patch does not reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=489023

I think this may be different symptoms of the same root cause.