[
https://issues.apache.org/jira/browse/FELIX-2907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Ivering updated FELIX-2907:
-----------------------------------
Attachment: enhanced_class_calling.patch
Attached patch to fix it.
> 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
> 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