This content has been marked as final.
Show 1 reply
-
1. Re: Create a proxy of proxy
glammy Apr 12, 2010 5:21 PM (in response to glammy)The problem was (actually, it's the same with CGLIB - I tried it using commons-proxy) that I should not try to create a proxy class of the proxy class. The second proxy should again be of the original class. So adding the following line resolves the problem:
if (instance instanceof ProxyObject) {
originalClass = originalClass.getSuperclass();
}