Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] possible bug comparing resources
[EMF Compare] possible bug comparing resources [message #621349] Tue, 01 September 2009 13:12
Jose Hernandez is currently offline Jose HernandezFriend
Messages: 32
Registered: July 2009
Member
Hi,

I have encountered a problem in EMF compare whereby an index out of bounds
(-1) exception in thrown in resourceURISimilatity when comparing in memory
(non-persisted) resources. My resources are created in this way:

ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.createResource(URI.createURI(""));
EList<EObject> contents = resource.getContents();
contents.add(emfModel);

Does anyone know whether this is a known issue? If so, is there are fix for
it?

java.lang.ArrayIndexOutOfBoundsException: -1
at
org.eclipse.emf.compare.match.internal.statistic.ResourceSim ilarity.resourceURISimilarity(ResourceSimilarity.java:138)
at
org.eclipse.emf.compare.match.internal.statistic.ResourceSim ilarity.computeURISimilarity(ResourceSimilarity.java:94)
at
org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.co mputeDeletedReferences(ReferencesCheck.java:400)
at
org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.cr eateNonConflictingReferencesUpdate(ReferencesCheck.java:520)
at
org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.ch eckReferenceUpdates(ReferencesCheck.java:197)
at
org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.ch eckReferencesUpdates(ReferencesCheck.java:77)
at
org.eclipse.emf.compare.diff.engine.GenericDiffEngine.checkF orDiffs(GenericDiffEngine.java:338)
at
org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiff Delegate(GenericDiffEngine.java:930)
at
org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiff Delegate(GenericDiffEngine.java:953)
at
org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiff Delegate(GenericDiffEngine.java:953)
at
org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiff TwoWay(GenericDiffEngine.java:576)
at
org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiff (GenericDiffEngine.java:113)
at
org.eclipse.emf.compare.diff.service.DiffService.doDiff(Diff Service.java:101)
at
org.eclipse.emf.compare.diff.service.DiffService.doDiff(Diff Service.java:82)

Regards,
Jose
Previous Topic:[Announce] Eclipse Modeling Days
Next Topic:[EMF Compare] MergeService doesn't copy a child non-containment reference
Goto Forum:
  


Current Time: Sun Feb 25 20:08:08 GMT 2024

Powered by FUDForum. Page generated in 0.02469 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top