[
https://issues.apache.org/jira/browse/FELIX-5049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Bosschaert resolved FELIX-5049.
-------------------------------------
Resolution: Invalid
I looked more closely at this issue. The test case presented in ARIES-1398
provides the {{org.osgi.service.resolver}} package both from the framework as
well as from the cmpn bundle. The version exported from the framework is 1.0.0
whereas the version exported from cmpn is 1.0.1. The framework is correct in
selecting the one from the cmpn bundle as the OSGi resolver spec says (section
3.8):
{noformat}The following list defines the preferences, if multiple choices are
possible, in order of decreasing priority:
* A resolved exporter must be preferred over an unresolved exporter.
* An exporter with a higher version is preferred over an exporter with a lower
version.
* An exporter with a lower bundle ID is preferred over a bundle with a higher
ID.{noformat}
Therefore I'm closing this issue as invalid.
> Resolver does not choose the revision with the lowest bundle ID
> ---------------------------------------------------------------
>
> Key: FELIX-5049
> URL: https://issues.apache.org/jira/browse/FELIX-5049
> Project: Felix
> Issue Type: Bug
> Components: Resolver
> Affects Versions: framework-5.2.0
> Reporter: David Bosschaert
>
> The Felix Resolver does not pick the exporting bundle with the lowest bundle
> ID when multiple bundles export the same package. This causes
> [ARIES-1398|https://issues.apache.org/jira/browse/ARIES-1398]. For steps on
> how to reproduce see that issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)