Add a getDeclaredMethod() function
samlu opened this issue · comments
Would you add the following API?
Method getDeclaredMethod(String name, Class...<?> parameterTypes)
The reasons are:
- we can cache the founded Method in our own class so it does not have to look up methods for each invoke() call
- easier for developers to find the polymorphism function
Public the checkArgsForInvokeMethod()
function is also an acceptable workaround.