DataBinder
throws StringIndexOutOfBoundsException
for indexed property without nested property path
#34121
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Trying to migrate from Spring Famework 6.1 to 6.2, I get an exception in Spring's validation code, located in the
DataBinder::getIndexes
method.When I look at the code it looks like a bug.
In my case,
name
containssomeField[]
, soparamPath.length() + 2
points outside the string. I think thatparamPath.length() + 1
should be used instead.The text was updated successfully, but these errors were encountered: