eclipse-equinox / equinox.bundles

Eclipse Public License 2.0
8 stars 16 forks source link

org.osgi.service.prefs.Preferences cannot be resolved. It is indirectly referenced from required .class files #58

Closed jonahgraham closed 2 years ago

jonahgraham commented 2 years ago

This may be related to #54?

When using 4.24 platform with CDT I see the following errors in the IDE. I have the following errors. These errors do not happen when I build the project with Tycho.

HannesWell commented 2 years ago

This may be related to #54?

I think this is not related to the flawed pom's but it is related to the change that caused it (i.e. the replacement of the previously embedded packages by the original osgi-jars from maven-central). The problem is that the Eclipse-compiler+JDT+PDE does not always handle Import-Package correctly. It is not yet clear where exactly the problem is, but adding Import-Package org.osgi.service.prefs could fix it.

jonahgraham commented 2 years ago

Thanks @HannesWell for the quick response - I will put in that workaround for CDT https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/194190

I guess there is nothing else left to do on platform side, so I will close this.