According to this bug https://cwiki.apache.org/jira/browse/FELIX-1795 bundle-version support in Fragment-Host header should work as of 2.0.2, yet it is not being honored for me.
Here is my situation: 1. Two bundle hosts, with the same symbolic name, but with different versions 1.6.1 and 1.6.2. 2. Two bundle fragments, with the same symbolic name, and with the same symbolic name fragment host from (1). The bundle-version of the two fragments is 1.6.1 and 1.6.2 (they are kept in sync to avoid confusion). In other words, I am expecting that version 1.6.1 of the host will resolve the 1.6.1 fragment, and the 1.6.2 host will resolve the 1.6.2 fragment. What I am finding is that the 1.6.2 fragment is resolving to both the 1.6.1 and 1.6.2 hosts. I know the 1.6.1 class loader is correct, as is the 1.6.2, but using getResourceAsStream from either host always gets me the 1.6.2 version. Both bundle-version parameters are expressed as single versions, e.g. bundle-version="1.6.2", although I have tried "[1.6.2,1.6.2]" as well to no avail. Am I doing something wrong or is this feature still bugged? Why is the 1.6.2 fragment in the classpath of the 1.6.1 classloader? Many thanks! Jean-Guy Speton -- View this message in context: http://old.nabble.com/Fragment-Host%27s-bundle-version-not-being-honored-in-2.0.4-tp28170716p28170716.html Sent from the Apache Felix - Dev mailing list archive at Nabble.com.
