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

Bug 345389

Summary: IndexOutOfBound when openning .emfdiff with profiles differences
Product: [Modeling] EMFCompare Reporter: Mikaël Barbero <mikael.barbero>
Component: CoreAssignee: EMF Compare <emf.compare-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: laurent.goubet, mikael.barbero
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Mikaël Barbero CLA 2011-05-11 05:40:33 EDT
The ModelCompareEditorInput resolves proxies in different ResourceSet. The issue is when left/right/ancestor models are linked to the same model (e.g. profile) it results in IOOB. The issue seems to be in the org.eclipse.emf.compare.ui.editor.ModelCompareEditorInput.DispatchingCrossReferencer.crossReference(EObject, EReference, EObject) method. You should use three "if" instead of "else if". 


Regards,
Comment 1 Laurent Goubet CLA 2011-07-21 08:50:20 EDT
This was failing in the particular case of opening emfdiff files that represented the comparison of models referencing a common third-party model (for example, profiles).

This is now fixed on master.