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

Method references can't be used to identify property #3537

Open
mukherjeesudebi opened this issue Jul 11, 2024 · 0 comments
Open

Method references can't be used to identify property #3537

mukherjeesudebi opened this issue Jul 11, 2024 · 0 comments
Labels

Comments

@mukherjeesudebi
Copy link

BeanValidationBinder works only when bind is called with property name and not with method references.

binder.bind(nameField, "name"); --> this works

binder.forField(nameField).bind(PersonData::getName, PersonData::setName); --> this does not work

This is an expected behaviour as method references can't be used to identify the property

This is a valuable information and should be mentioned in the docs


If you think this issue is important, add a 👍 reaction to help the community and maintainers prioritize this issue.

@tepi tepi added the flow label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 Needs triage
Development

No branches or pull requests

2 participants