[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.emft] Re: [EMF Compare] resourceURISimilarity fails with empty URI

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


begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/";>Obeo</a>
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard