felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clement Escoffier <clement.escoff...@gmail.com>
Subject Re: Problem calling _setInstanceManager on guice enhanced classes
Date Thu, 07 Apr 2011 08:14:38 GMT

On 07.04.11 09:53, "Nicolas" <powerballad@gmail.com> wrote:

>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
>Should I create an issue for this? Also, could this be a problem for other
>methods than _setInstanceManager? I have a patch done that works and does
>the solution described above.

Please do, I will have a look and apply it !



>Nicolas Ivering

View raw message