Skip to main content



      Home
Home » Archived » Sapphire » Bug in feature dependencies in 8.2
Bug in feature dependencies in 8.2 [message #1700052] Mon, 29 June 2015 16:56 Go to next message
Eclipse UserFriend
I just installed a feature that depends on Sapphire 8.x.x.x on Eclipse Mars.
After adding the update site for 8.2 installation went smooth and the feature worked.

But in the error log I found the following error message:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.sapphire.modeling [921]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"


From my understanding the following happend:

The custom feature has the following in its feature.xml:
   <requires>
      <import feature="org.eclipse.sapphire.osgi" version="8.0.0" match="compatible"/>
   </requires>

because of this entry the feature org.eclipse.sapphire.osgi_8.2.0.201506110935 was installed. This feature has the following entry in its feature.xml:
   <requires>
      <import feature="org.eclipse.sapphire" version="8.2.0"/>
   </requires>

Because of this entry the feature org.eclipse.sapphire_9.0.0.201506110922 was installed. This version requires Java 8, hence the error message.

I think the correct entry in the feature.xml of org.eclipse.sapphire.osgi_8.2.0 should be:
   <requires>
      <import feature="org.eclipse.sapphire" version="8.2.0" match="equivalent"/>
   </requires>

The value "equivalent" would also accept the version 8.2.1, 8.2.2 etc. The value "perfect" might be even better, as it only matches 8.2.0.

IMO the missing match attribute is wrong (as match="greaterOrEqual" would be).

Ralf
Re: Bug in feature dependencies in 8.2 [message #1700053 is a reply to message #1700052] Mon, 29 June 2015 16:58 Go to previous messageGo to next message
Eclipse UserFriend
Interesting. Could you open a bug with these details? Thanks.
Re: Bug in feature dependencies in 8.2 [message #1700057 is a reply to message #1700053] Mon, 29 June 2015 17:36 Go to previous message
Eclipse UserFriend
Done: Bug # 471385
Previous Topic:Property editor's property reference path is invalid.
Next Topic:Can custom contributors be added to ValidationMarkerPresentaton?
Goto Forum:
  


Current Time: Mon May 05 11:19:37 EDT 2025

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

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

Back to the top