I have two methods and one of them with an annotation, let's say:
@ReplacingMethod(bar)
public void foo() { ... }
public void bar { ... }
Is it possible to invoke bar instead of foo whenever foo is called, without jumping into the body of foo? I did some research on this and were not able to set a return value via reflections. Any suggestions?
Aucun commentaire:
Enregistrer un commentaire