|
From: Chris N. <ch...@si...> - 2004-10-06 17:11:24
|
Rob Harrop wrote: > I took a look at your suggested workaround and I started the basics of > an implementation. The problem I came up against is that when the > constructor is invoked by CGLIB, which in turn invokes a method, say > setName(), the call to invokeSuper() by the interceptor fails with: Make sure you are passing the proxy as the first argument to invokeSuper, not the target. Also, it may be better to move the logic earlier, i.e. into DynamicAdvisedInterceptor instead of MethodInvocationImpl. Chris |