One question...
how can i set "null" a single parameter of method using reflection?
For example:
I've next method XXX:
public void XXX (Set foo) {
this.foo = foo;
}
I need send a null value to "foo" atribute, but i can't to use invoke(obj,null) because in this case, don't find method XXX() (without parameter)!! and trow java.lang.NoSuchMethodException...
any suggestion? |