Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product Launching in Eclipse uses wrong plugin versions (of org.apache.felix.scr) #1332

Open
mikerumpf opened this issue Jul 10, 2024 · 0 comments

Comments

@mikerumpf
Copy link

mikerumpf commented Jul 10, 2024

If the target platform in eclipse contains two versions of org.apache.felix.scr (e.g. 2.2.6 and 2.2.10) and an eclipse product references only the older version (2.2.6.) and sets autostart to true, unexpected behaviour occurs at runtime:

If the product is based on features at runtime two versions of SCR will be started (only 2.2.6 would be expected):

6|Active | 4|org.apache.felix.scr (2.2.10)|2.2.10
7|Active | 1|org.apache.felix.scr (2.2.6)|2.2.6

If the product is based on bundles 2.2.10 is started (though 2.2.6 would be expected)

If autostart is set to false in the feature based product the SCR bundle in version 2.2.6 is started. (as it should be)
If autostart is set to false in the bundle based product the SCR bundle in version 2.2.10 is started. (wrong)

Some background info:

  • tested with Eclipse 3/2024 and a minimal example
  • The feature based product is pretty much org.eclipse.equinox.core.feature with some additional bundles (including SCR)
  • "Include required plugins and features' is set to false
  • If you export the product or build it with tycho none of the above weird behavior occurs. In fact the correct version (2.2.6.) is used. This is only an issue within Eclipse.

If needed I can provide a minimal example to reproduce the issue

Thanks in advance for any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant