Bug 499895 - Problem while comparing viewpoints in DAnalysisSessionHelper
Summary: Problem while comparing viewpoints in DAnalysisSessionHelper
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 4.0.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 5.0.0M7   Edit
Assignee: Maxime Porhel CLA
QA Contact: Pierre-Charles David CLA
URL:
Whiteboard: needtest
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-08-18 06:09 EDT by Arthur Daussy CLA
Modified: 2017-06-29 03:32 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Daussy CLA 2016-08-18 06:09:04 EDT
The method getContainer of DAnalysisSessionHelper use == to compare 2 viewpoints. In some case, the given viewpoint could be the one loaded from the ViewPointRegistry (so a different instance than the one loaded in the ResourceSet). To be more robust this method could use EqualityHelper.areEquals(like its done in some other part of Sirius)

Regards,

Arthur
Comment 1 Steve Monnier CLA 2016-08-19 11:42:20 EDT
As discussed with Arthur, the issue was detected using a sample that cannot be shared on a bugzilla. We need to create a new sample based on available metamodel to set this issue as "triaged" and ready to be analyzed.
Comment 2 Eclipse Genie CLA 2016-09-23 10:04:16 EDT
New Gerrit change created: https://git.eclipse.org/r/81796
Comment 4 Pierre-Charles David CLA 2017-03-07 05:40:02 EST
The only thing missing before we can close this is an automated test.
Comment 5 Pierre-Charles David CLA 2017-05-02 05:00:39 EDT
Marking as resolved to make it clearer what's left to do for 5.0. This is still marked as "needtest".
Comment 6 Pierre-Charles David CLA 2017-05-22 08:50:39 EDT
Verified by re-inspecting the actual code in 5.0M7, as we don't have a concrete reproduction scenario.
Comment 7 Pierre-Charles David CLA 2017-06-29 03:32:32 EDT
Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details.