Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351591 - Merge Stereotype Application : bad XMI number
Summary: Merge Stereotype Application : bad XMI number
Status: CLOSED FIXED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 11:19 EDT by Vincent Lorenzo CLA
Modified: 2011-07-25 04:37 EDT (History)
1 user (show)

See Also:


Attachments
An example to reproduce the bug (created with Papyrus) (4.69 KB, application/octet-stream)
2011-07-08 11:21 EDT, Vincent Lorenzo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2011-07-08 11:19:54 EDT
When you merge a Stereotype Application, the XMI ID is not correctly merged.
Tested with source code downloaded here https://github.com/sbouchet/emfcompare

Steps to reproduce (using Papyrus to create the UML file): 
	1/ Create a model with a class for example
	2/ Copy your file
	3/ Apply a stereotype on the class
	4/ Compare the 2 files : one have a stereotype application and not the other
	5/ Merge the stereotype application. Save the file, and compare them into text mode : the XMI id for the stereotype application has not been correctly duplicated
Comment 1 Vincent Lorenzo CLA 2011-07-08 11:21:34 EDT
Created attachment 199344 [details]
An example to reproduce the bug (created with Papyrus)

To reproduce the bug, compare the 2 uml files.

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided. 
(2) This code contains no cryptography 
(3) I have the right to contribute the code to Eclipse. 
(4) I contribute the content under the EPL.
Comment 2 Laurent Goubet CLA 2011-07-19 08:15:16 EDT
Vincent,

Thanks for the example models, I could reproduce really easily with those. This has now been fixed on master. I'll try and get a nightly build later so that you can verify the correction.
Comment 3 Vincent Lorenzo CLA 2011-07-19 09:50:51 EDT
Hi Laurent, 
  thank you for the correction. Do you have an update site for the nightly build?
Comment 4 Laurent Goubet CLA 2011-07-19 10:09:07 EDT
Vincent,

I am struggling a little with the build right now, one is running at the moment, I hope it will be the good one.
Comment 5 Laurent Goubet CLA 2011-07-19 11:17:58 EDT
The nightly is (at last!) ready, you can grab it from the update site http://download.eclipse.org/modeling/emf/compare/updates/nightly/1.2
Comment 6 Vincent Lorenzo CLA 2011-07-25 04:24:56 EDT
Hi Laurent, 
  I confirm its works fine with your nightly build. Thank you for the correction.
Comment 7 Laurent Goubet CLA 2011-07-25 04:37:19 EDT
Thanks for the feedback :)