I have classes as show below
public class Caller {
private Calle calle = new Calle();
public void invoke(final String arg) {
calle.invoke(arg);
}
}
public class Calle {
public void invoke(final String arg) {
}
}
public class Main {
public static void main(final String[] args) {
Caller caller = new Caller();
caller.invoke("suman");
}
}
I wanted to write a byteman rule to capture caller.invoke("suman"); method call and modify the argument "suman" to "suman1". That means for calle.invoke(arg); in Caller class the argument should come as "suman1". I tried capturing the arguments using byteman rules, but i don't know how to modify the arguments.
can you please help?