[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,


Reply to this message by going to Community

Start a new discussion in Javassist at Community

-------------- 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