felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-2907) Problem calling _setInstanceManager on guice enhanced classe
Date Sun, 10 Apr 2011 15:20:05 GMT

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

Clement Escoffier resolved FELIX-2907.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: ipojo-core-1.8.2
         Assignee: Clement Escoffier

I've applied the patch. Please tell me if it's ok.

Thanks !

> Problem calling _setInstanceManager on guice enhanced classe
> ------------------------------------------------------------
>
>                 Key: FELIX-2907
>                 URL: https://issues.apache.org/jira/browse/FELIX-2907
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.8.0
>            Reporter: Nicolas Ivering
>            Assignee: Clement Escoffier
>            Priority: Minor
>             Fix For: ipojo-core-1.8.2
>
>         Attachments: enhanced_class_calling.patch
>
>
> If a pojo is created by some class enhancer, for example a method interceptor enhanced
object returned by guice, the call to _setInstanceManager in InstanceManager fails. The reason
is that the enhanced class is a subclass of the original pojo and that class only has the
methods it chose to override. 
> One solution to this is to travel up the class hierarchy until the _setInstanceManager
method is found or Class.getSubclass() returns null (in which case we throw the usual error.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message