Skip to content

Validate method parameter index via Java 8 Method.getParameterCount() [SPR-13456] #18036

Closed
@spring-projects-issues

Description

@spring-projects-issues

俞火江 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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions