Skip to content

Regression: BeanWrapperImpl.getPropertyDescriptor does not allow nested paths [SPR-13403] #17983

@spring-projects-issues

Description

@spring-projects-issues

Jasper Floor opened SPR-13403 and commented

BeanWrapper.getPropertyDescriptor(String propertyName) promises that you can use a nested path in the property name:

propertyName the property to obtain the descriptor for (may be a nested path, but no indexed/mapped property)
propertyName the property to obtain the descriptor for (may be a nested path, but no indexed/mapped property)

BeanWrapperImpl, however, does not seem to respect that contract. This is confirmed working correctly in Spring 4.1.4 and broken in 4.2. The implementation of this method has changed, and it is getting the PD in a different way. For some reason the new implementation does not use nested paths.


Affects: 4.2 GA

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions