Declarative Services Annotations Support

Add this URL to your Eclipse Installation to reach this Solution's Update Site.

Mars (4.5)
Luna (4.4)
Kepler (4.3)

Learn more...

Details Group Tabs

Dirk Fauth's picture

I tried to use the Declarative Services Annotations Support 1.2.8 (latest) in Neon M5. But it doesn't resolve due to a missing dependency to org.eclipse.pde.ds.core [1.0.300, 1.1.0). Are there any activities to update this plugin or will it be included in Neon shortly?

Peter Nehrer's picture

Dirk, the functionality implemented by this plugin has been added directly to Eclipse PDE as of Neon M6 (to be released shortly). See https://bugs.eclipse.org/bugs/show_bug.cgi?id=376950

Stefan Häusler's picture

Hello,

first of all, thanks for this useful plugin, we used it a lot in the past. Recently, we tried to build a new Eclipse Development environment based on Mars and were "forced" to upgrade to the new 1.2.5 version. Now, all service @Reference annotations deliver compile errors, as we did not define specific unbind methods.

I am curious why this behaviour has been changed?

Stefan

Peter Nehrer's picture

Stefan,

this behavior was added to notify the user that a corresponding unbind method wasn't found for their reference using the default algorithm, which is typically the use-case. This clearly breaks another use-case -- where the unbind method is intentionally omitted.

I have since published an update (v1.2.6) that addresses this through a new preference -- you can suppress this particular validation on your project or the entire workspace.

--Peter