eclipse / lyo

Eclipse Lyo, a Java SDK for OSLC-based tool integration

Home Page:https://oslc.github.io/developing-oslc-applications/eclipse_lyo/eclipse-lyo.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JenaModelHelper cannot detect most concrete class (raising an exception) even when such a class exists.

jadelkhoury opened this issue · comments

The method getMostConcreteClassOf() in org.eclipse.lyo.oslc4j.provider.jena.ordfm.ResourcePackages incorrectly triggers an exception when trying to select the most concrete class, if the classes are listed in a certain order.

One particular scenario (there may be others) that causes this error is when the candidate classes are listed in increasing specialisation.

The while-loop is being prematurely ended since the list size is being decreased within the loop, by removing items. Later candidates are not tested.