[jboss-user] [Javassist] - Re: VerifyError, Bad type in putfield/putstatic
Sergio Celentano
do-not-reply at jboss.com
Mon Jan 24 11:17:26 EST 2011
Sergio Celentano [http://community.jboss.org/people/sergio.celentano] created the discussion
"Re: VerifyError, Bad type in putfield/putstatic"
To view the discussion, visit: http://community.jboss.org/message/582832#582832
--------------------------------------------------------------
hi guys,
I realized that i made some mistake in the snippet provided in the last report. First the *getClassLoader()* method should be called on the same class where the snippet has been included (my.wrapper.Controller). Then the metaclass argument in *makeReflective()* invocation should be *javassist.tools.reflect.ClassMetaobject.*
Doing this way I can intercept the methods of any class but not of abstract classes, which is my case. Nobody knows how I can make this!?
Thanks again,
Sergio
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/582832#582832]
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/20110124/b503d356/attachment.html
More information about the jboss-user
mailing list