[ 
https://issues.apache.org/jira/browse/SLING-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Meschberger closed SLING-148.
-----------------------------------

    Resolution: Fixed

Added interpretation support for the org.osgi.framework.bootdelegation 
property: Each package in the Export and Import list is checked whether it 
matches any entry in the bootdelegation property. If so, it is marked with 
leading exclamation marks, a trailing not and printed in red.

Note, though, the indication that a package is listed in the bootdelegation 
property does not mean, that classes from these packages will efectively be 
loaded through the parent class loader: It may still be, that some (or all) 
classes may be loaded through the wiring if the boot class loader does not have 
the respective class. This may cause even more problems as some classes of a 
given package may be loaded from the boot class loader and some from the wiring 
if the used libraries do not match !

The code to parse the bootdelegation property and compare the package names to 
the proprty entries is taken from the Apache Felix R4PolicyCore class to match 
the standard specification behaviour.

Fixed in Rev. 613109

> Mark conflicts between package imports and bootdelegation
> ---------------------------------------------------------
>
>                 Key: SLING-148
>                 URL: https://issues.apache.org/jira/browse/SLING-148
>             Project: Sling
>          Issue Type: Improvement
>          Components: Console
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> Currently the Sling Console lists the packages exported and imported for each 
> bundle on request. In case of a package listed in the 
> org.osgi.framework.bootdelegation property such wiring is actually ignored 
> and the parent class loader is used. This situation might be confusing as the 
> results may be unexpected.
> To help in solving possible issues with this problem, wired imports which 
> match any entry in the bootdelegation property should be marked to indicate 
> that respective packages will be loaded from the parent class loader and not 
> from the wired import.

-- 
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