[jboss-user] [Javassist] - Create a proxy of proxy

Bozhidar Bozhanov do-not-reply at jboss.com
Mon Apr 12 17:21:17 EDT 2010


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&containerType=14&container=2062]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100412/4891e82f/attachment.html 


More information about the jboss-user mailing list