You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the interesting part is classpath=true what adds the DS annotation classes to the classpath of the current project.
While everything works in PDE, the tycho build fails with:
Access restriction: The type 'Activate' is not API
(restriction on classpath entry 'somepath/org.eclipse.osgi.services-3.10.200.v20210723-0643.jar')
so it is required to add a package-import to the bundle to make this compile. The DS annotations are all have a retention of RetentionPolicy.CLASS that means they are not available at runtime and thus only needed at compile-time.
We should add support for this to not force people adding useless imports to their bundle.
The text was updated successfully, but these errors were encountered:
The PDE DS Plugin has a configuration file named
org.eclipse.pde.ds.annotations.prefs
that looks like this:the interesting part is
classpath=true
what adds the DS annotation classes to the classpath of the current project.While everything works in PDE, the tycho build fails with:
so it is required to add a package-import to the bundle to make this compile. The DS annotations are all have a retention of
RetentionPolicy.CLASS
that means they are not available at runtime and thus only needed at compile-time.We should add support for this to not force people adding useless imports to their bundle.
The text was updated successfully, but these errors were encountered: