lundi 29 février 2016

still invoked toString in invoke methode

I have problem with use of CGLib. I have defined a MethodInterceptor, but when I call method.getName() in the intercept method I get only the result from the toString() method ... Why? I don't understand that, because I never call the toString() method directly

public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
      ....
      method.getName();
      return something;
}

when i call method on proxy object i get toString but i call different method. Thx for every idea.





Aucun commentaire:

Enregistrer un commentaire