Skip to content

Share MethodParameter cache between HandlerMethods [SPR-9748] #14382

@spring-projects-issues

Description

@spring-projects-issues

Patrick Linskey opened SPR-9748 and commented

RequestMappingHandlerAdapter creates a new HandlerMethod for each request. HandlerMethods cache their MethodParameters to avoid costly reflection calls each time annotation stats are needed, but the per-request copy circumvents this cache. This patch explicitly copies the MethodParameter cache from a HandlerMethod and its request-scoped dependents.


Affects: 3.1.1, 3.1.2, 3.2 M2

Issue Links:

Referenced from: commits 2295372, 0a877af

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions