[ 
https://issues.apache.org/jira/browse/FELIX-2205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846296#action_12846296
 ] 

Richard S. Hall commented on FELIX-2205:
----------------------------------------

The issue is that there is no relationship between bundle version and package 
versions. If I have bundle Foo 1.0.0 and bundle Bar 2.0.0 both of which export 
org.woz, which provider should I choose? Comparing the bundle versions is 
meaningless since the bundles do not have the same symbolic name.

If you really want to treat your package versions as if they are in lockstep 
with your bundle version, you'd be better of explicitly assigning the bundle 
version number to your package versions. At least then it would be clear what 
you are trying to achieve. Your proposal leaves your package versions at 0.0.0 
but hopes that they get handled as being the same as the bundle version. 
Keeping this desire implicit seems to be a recipe for disaster, especially 
since the specification defines different priority rules for the framework 
resolver.

> OBR resolver unable to pick up the highest bundle version when exported 
> packages are not versioned
> --------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2205
>                 URL: https://issues.apache.org/jira/browse/FELIX-2205
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.4.3
>            Reporter: Emily Jiang
>
> I have three bundles that have the same symbolic names with different bundle 
> version and export the same package. The package is not versioned. The 
> resolver is unable to pick up the highest version of bundles, which is the 
> bundle4. It randomly picks one bundle.
> bundle1.jar
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Bundle Plug-in
> Bundle-SymbolicName: a.b.c
> Bundle-Version: 1.0.0
> Bundle-Vendor: ABC
> Require-Bundle: a.b.c.d
> Export-Package: a.b.c
> bundle2.jar
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Bundle Plug-in
> Bundle-SymbolicName: a.b.c.d
> Bundle-Version: 1.0.0
> Bundle-Vendor: ABC
> Export-Package: a.b.c.d
> bundle3.jar
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Bundle Plug-in
> Bundle-SymbolicName: a.b.c.d
> Bundle-Version: 3.0.0
> Bundle-Vendor: ABC
> Export-Package: a.b.c.d
> bundle4.jar
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Bundle Plug-in
> Bundle-SymbolicName: a.b.c.d
> Bundle-Version: 4.0.0
> Bundle-Vendor: ABC
> Export-Package: a.b.c.d

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to