JBoss Community

Re: VerifyError, Bad type in putfield/putstatic

created by Sergio Celentano in Javassist - View the full discussion

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

Start a new discussion in Javassist at Community