felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: Fragment bundle support
Date Tue, 17 Feb 2009 17:44:57 GMT
Could you try on trunk or the latest released snapshot?

There was a bug fixed recently, perhaps it is related:

    http://issues.apache.org/jira/browse/FELIX-852

-> richard

Fran├žois Fornaciari wrote:
> Hi,
>
> I know that the fragment bundle support is on going, but I would like 
> to submit a case that I have encountered.
>
> It seems that the installation order of a host bundle and its fragment 
> bundle modify the fragment support behaviour.
> I have made some tests and if the fragment bundle is installed before 
> the host bundle, everything goes fine. The host bundle can load a 
> class from its fragment and the classloader used to load the class 
> corresponds to the classloader of the host bundle. This case works 
> also fine when getting a resource.
>
> If I invert the installation order, that means if the host bundle is 
> installed before the fragment bundle, the host bundle fails to get the 
> same resource from the fragment. The class loading seems to work but 
> if try to print the used classloader, the host bundle loads the class 
> using the classloader of the fragment host.
>
> Is this behaviour expected?
>
> Regards,
> Fran├žois
>

Mime
View raw message