5.1 EE SP4 (5.1.7), 5.2 EE SP1 (5.2.5)
The information encapsulated by MethodWrapper is sometimes insufficient because a method's argument may be sub-classes/impl-classes of a class/interface. For example:
void myMethod(ArrayList list);
void myMethod(List list);
In this situation, the wrong method may get invoked.
To address this issue, a MethodWrapper can now be created using:
public MethodWrapper(Method method, Object arguments);
Creating a MethodWrapper in this fashion allows a MethodInvoker class to use
public String getArgumentClassNames()
to retrieve an array of method's arguments classes.
- is related to
LPS-5336 Give MethodWrapper/MethodInvoker a safer way to look up the target method to invoke