Skip to content

BeanWrapper should auto-grow arrays on indexed set attempt as well [SPR-12706] #17303

@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-12706 and commented

BeanWrapper does not manage indexed access for an array if it has to create the actual array. This gives a weird situation where if the array is already initialized the bracket notation works but if the binder has to initialize it it always fails with an ArrayIndexOutOfBoundsException as it creates an empty array by default.


Referenced from: commits 1646f62, aa21339

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions