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