felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sahoo (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1190) Set parent classloader of bundle classloader to be same as what is actually used for delegation
Date Sat, 30 May 2009 01:05:07 GMT

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

Sahoo commented on FELIX-1190:
------------------------------

I would like this to be addressed in next release instead of waiting till 2.0.0. I don't see
the fix being a risky one or causing any compatibility issues. The suggested fix does not
class loading for bundles. It just sets the parent (as returned by getDelegate()) same as
what is actually used by Felix for delegation.

Thanks,
Sahoo

> Set parent classloader of bundle classloader to be same as what is actually used for
delegation
> -----------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1190
>                 URL: https://issues.apache.org/jira/browse/FELIX-1190
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.6.1
>         Environment: generic
>            Reporter: Sahoo
>             Fix For: felix-2.0.0
>
>
> Refer to a previous discussion in dev alias:
> http://mail-archives.apache.org/mod_mbox/felix-users/200804.mbox/%3c487a994c0804010552n35fc44eew34b34a1795e14d6f@mail.gmail.com%3e
> Currently, although Felix uses the classloader that loads Felix classes as the parent
class loader for delegation, it actually sets system class loader as the parent (ClassLoader.getParent()).
It is because when it creates a class loader, it does not set any parent, hence the default
value is used. The fix should be particularly simple. e.g., get hold of a Felix framework
class and use its classloader as the parent.

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


Mime
View raw message