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

Bug 354621

Summary: External EAnnotation.references fail to compare equal
Product: [Modeling] EMFCompare Reporter: Ed Willink <ed>
Component: CoreAssignee: EMF Compare <emf.compare-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-08-12 09:43:59 EDT
(Maybe this is covered by your many M1 fixes, but it makes a good test case anyway.)

The following file and another file with identical content compare with two changes on the reference to the external EAnnotation.

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="foo"
    nsURI="http://www.foobar.com/0.1" nsPrefix="amber">
  <eClassifiers xsi:type="ecore:EClass" name="Bar1">
    <eStructuralFeatures xsi:type="ecore:EReference" name="start" lowerBound="1" eType="#//Socket">
      <eAnnotations references="http://www.eclipse.org/emf/2002/Ecore#//ELong/%http:%2F%2F%2Forg%2Feclipse%2Femf%2Fecore%2Futil%2FExtendedMetaData% #//Bar1/start #/ #//Socket"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Socket"/>
</ecore:EPackage>
Comment 1 Cedric Brun CLA 2011-08-12 11:03:52 EDT
Thanks Ed,

I just tried with the current maintained streams (1.2 maintenance branch and master) and neither "per Resource" or "whole resourceSet" are detecting a change.

It has been fixed by the proxy/out of scope fixes we did the previous weeks. So far so good :)
Comment 2 Laurent Goubet CLA 2011-08-18 04:06:00 EDT
Closing our "resolved" and "verified" bugs.