-
Enhancement
-
Resolution: Done
-
Major
-
6.0.1.Final
-
None
-
None
Currently, we simply construct a method handle a delegate the invocation to it.
This means we don't perform any null checks on the target instance or args array, nor do we check their types.
This means that given a wrong input, user will only see a rather cryptic error.
We could improve that but we need to keep in mind the performance - all of the checks can only be done at the time of invocation and will hence hinder the throughput.
The impact on performance can vary wildly based on whether the method uses some lookup (which itself it expensive) and mainly how much "actual work" it does.
One very good idea (by Andrew) is to first let the call go through, check if there was an error and only perform the validation if we see a certain error as a result of that given method.