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

Bug 351591

Summary: Merge Stereotype Application : bad XMI number
Product: [Modeling] EMFCompare Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: EMF Compare <emf.compare-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: laurent.goubet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
An example to reproduce the bug (created with Papyrus) none

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 :)