Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345389 - IndexOutOfBound when openning .emfdiff with profiles differences
Summary: IndexOutOfBound when openning .emfdiff with profiles differences
Status: CLOSED FIXED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 05:40 EDT by Mikaël Barbero CLA
Modified: 2011-07-21 08:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.