俞火江 opened SPR-13456 and commented
If the value for parameterIndex is too great when constructing a MethodParameter, an ArrayIndexOutOfBoundsException will be thrown later when some method such as getParameterType() is called. So why not detect the error as early as possible?
Affects: 4.2.1
Issue Links:
Referenced from: commits 39e3f2e