Can you modify the parameter values of a method using reflection?

problem description

void a (string b);
such a method, I can get its parameter name b through reflection, but I don"t seem to be able to change its value. Is there anything I can do?

May.08,2021

first, I don't think you can get the parameter name
without the help of tools other than jdk. Second, with the help of tools such as asm, you can have the opportunity to modify the parameter dynamically in the way of dynamic proxy)
in short, the answer is yes

Menu