You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2009/07/16 17:10:14 UTC

[jira] Created: (FELIX-1371) Automatic parent class loader delegation does not correctly filter calls to Bundle.loadClass()

Automatic parent class loader delegation does not correctly filter calls to Bundle.loadClass()
----------------------------------------------------------------------------------------------

                 Key: FELIX-1371
                 URL: https://issues.apache.org/jira/browse/FELIX-1371
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-1.8.1
            Reporter: Richard S. Hall
            Assignee: Richard S. Hall
            Priority: Minor
             Fix For: felix-2.0.0


Our hack to determine whether we should automatically delegate to the parent class loader in certain cases when a class is not found has a bug. It tries to do filter calls to Bundle.loadClass(), but does so incorrectly. It uses Class.isInstance() when it should be using Class.isAssignableFrom().

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


[jira] Closed: (FELIX-1371) Automatic parent class loader delegation does not correctly filter calls to Bundle.loadClass()

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-1371.
----------------------------------

    Resolution: Fixed

Committed a fix.

> Automatic parent class loader delegation does not correctly filter calls to Bundle.loadClass()
> ----------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1371
>                 URL: https://issues.apache.org/jira/browse/FELIX-1371
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.8.1
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-2.0.0
>
>
> Our hack to determine whether we should automatically delegate to the parent class loader in certain cases when a class is not found has a bug. It tries to do filter calls to Bundle.loadClass(), but does so incorrectly. It uses Class.isInstance() when it should be using Class.isAssignableFrom().

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