| [news.eclipse.technology.emft] Re: [EMF Compare] resourceURISimilarity fails with empty URI |
Hi Laurent,
Best regards, Guillaume
laurent Goubet wrote:
Hi Guillaume,
Can't say this is "by design", it's more that we didn't protect the code against empty URI resources since most of the code assumes your compared resources are contained within a resource set, and they have legal URIs.
Do you have a legit use case where we should be able to compare resources with no URI? If yes, then please raise a bug with the information and (if possible) sample models for which the code should be functional.
Laurent Goubet Obeo
Guillaume Chatelet a écrit :Maybe it's 'by design' but if you try to compare resources with no or empty URI, the resourceURISimilarity method fails with an ArrayIndexOutOfBoundException on line :
final String referenceName = reference[reference.length - 1];
Best regards, Guillaume