-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix REQUIRE_SETTERS_FOR_GETTERS
taking no effect
#4257
Conversation
return (_ctorParameters != null) | ||
|| (_setters != null) | ||
|| ((_fields != null) | ||
// [databind#736] Fix `REQUIRE_SETTERS_FOR_GETTERS` taking no effect | ||
&& (_fields.isVisible)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be that we could deserialize if _fields
not null AND is visible (I think... like private field 🤔)
@JooHyukKim Makes sense; my only concern is whether this could lead to ignoring some fields that might not be visible but have annotations. But none of test suite fails so I think we should be good. But I have a feeling this is too risky for 2.16 and would prefer PR against |
Agreed, and changed base 👍🏼 |
Thank you @JooHyukKim! Will try to get this merged soon (tomorrow). |
fixes #736 from way back.
Notes