Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Aug 28, 2015 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Good catch: This was unintentionally refactored to use local property handler lookup. Fixed for 4.2.1 now, allowing for nested accessor traversal again. Feel free to give this an early try in the upcoming 4.2.1.BUILD-SNAPSHOT...

Juergen

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.2.1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants