Bozhidar Bozhanov [
http://community.jboss.org/people/Glammy] replied to the discussion
"Create a proxy of proxy"
To view the discussion, visit:
http://community.jboss.org/message/537016#537016
--------------------------------------------------------------
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();
}
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/537016#537016]
Start a new discussion in Javassist at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]