MethodParameter.findParameterIndex() is not thread-safe [SPR-17534] #22066
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Sam Brannen opened SPR-17534 and commented
Status Quo
As discussed in #22065,
org.springframework.core.MethodParameter.findParameterIndex(Parameter)
is not thread-safe due to the manner in whichjava.lang.reflect.Executable.getParameters()
is implemented in the JDK.Proposed Solution
The following change has been verified to result in thread-safe behavior.
Whether or not we want two iterations is up for debate.
Deliverables
MethodParameter.findParameterIndex()
is thread-safeAffects: 5.0.10, 5.1 GA
Issue Links:
Referenced from: commits 81fde5e, f0e69e0
Backported to: 5.0.11
The text was updated successfully, but these errors were encountered: