felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Ivering (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-2907) Problem calling _setInstanceManager on guice enhanced classe
Date Thu, 07 Apr 2011 09:20:05 GMT
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
            Priority: Minor

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

View raw message