com.alibaba.fastjson.util.FieldInfo:433
public void set(Object javaObject, Object value) throws IllegalAccessException, InvocationTargetException {
if (method != null) {
method.invoke(javaObject, new Object[] { value });
return;
}
field.set(javaObject, value);
}
Here method
actually points to the field's getter. Hence it doesn't work as its name stated. Invoking it will result to a java.lang.IllegalArgumentException: wrong number of arguments
.
4条答案
按热度按时间h79rfbju1#
FieldInfo use to serializer invoke getter & deserializer invoke setter, it no problem. can you gives a testcase reproduce this problem?
os8fio9y2#
, where
clazz
is a standard POJO andobject
is an instance of it.ppcbkaq53#
it's internal api, can not directly invoke!
nnt7mjpx4#
@wenshao I know, but it's still a flaw. ( ˘•ω•˘ )