[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.emft] Re: [EMF Compare] possible bug comparing resources
|
Hi Laurent,
I've given my resources names as suggested to work around the issue.
I look forward to the next release.
Thanks
Jose
"laurent Goubet" <laurent.goubet@xxxxxxx> wrote in message
news:h8388u$b68$1@xxxxxxxxxxxxxxxxxxxx
> Hi Jose,
>
> Sorry for not responding, I didn't pay attention to this message.
>
> This is an overlook from our side and will be fixed in the next build.
> Would be better if you had set proper URIs to your resources though, it
> would tell the framework which content they hold (resource.uml would
> suffice for your resource to be an "UMLResourceImpl" instead of the
> regular "ResourceImpl" for example.
>
> Laurent Goubet
> Obeo
>
> Jose Hernandez a écrit :
>> 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.ResourceSimilarity.resourceURISimilarity(ResourceSimilarity.java:138)
>> at
>> org.eclipse.emf.compare.match.internal.statistic.ResourceSimilarity.computeURISimilarity(ResourceSimilarity.java:94)
>> at
>> org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.computeDeletedReferences(ReferencesCheck.java:400)
>> at
>> org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.createNonConflictingReferencesUpdate(ReferencesCheck.java:520)
>> at
>> org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.checkReferenceUpdates(ReferencesCheck.java:197)
>> at
>> org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.checkReferencesUpdates(ReferencesCheck.java:77)
>> at
>> org.eclipse.emf.compare.diff.engine.GenericDiffEngine.checkForDiffs(GenericDiffEngine.java:338)
>> at
>> org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiffDelegate(GenericDiffEngine.java:930)
>> at
>> org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiffDelegate(GenericDiffEngine.java:953)
>> at
>> org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiffDelegate(GenericDiffEngine.java:953)
>> at
>> org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiffTwoWay(GenericDiffEngine.java:576)
>> at
>> org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiff(GenericDiffEngine.java:113)
>> at
>> org.eclipse.emf.compare.diff.service.DiffService.doDiff(DiffService.java:101)
>> at
>> org.eclipse.emf.compare.diff.service.DiffService.doDiff(DiffService.java:82)
>>
>> Regards,
>> Jose
>>
>>
>
>