-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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 section about required setters for Collections in "Type-safe Configuration Properties" #43138
Comments
I thought the setter was mandatory for setting the property in one go using comma separated values. Perhaps the binder has changed to not require that anymore? |
It'll call the setter if it has one, but it doesn't need one as it'll mutate the existing |
maybe we should modify this doc, right? Before
AfterVersion1
I split Version 2
Just modify on the original version, but fix the error that Do I fix the section correctly🤔 ? If so, could u plz assign this issue to me, and I'll make a PR to modify the doc🥰? |
Hey @wickdynex, thanks for your initiative. We're currently looking for the exact cause why this sentence is in our docs - maybe the binder implementation changed in the past. We want to make sure that we don't miss any corner case and state incorrect facts in our documentation. I'll chime back in when we're done with this.
I think for arrays the setter is always necessary. You can double check, if you like. I like version 2 more. |
Okey, it seems that your team need to figure out why doc differs from the actual behavior of the code. Hope everything goes smoothly~ Until you and your team fix the |
No we can't modify the section until we have figured out why the doc states that setters for collections are necessary. It may be that the doc is wrong or it may be that I'm wrong and I have missed an edge case in my testing which makes the setters necessary for collections. |
Yeah, before making changes, we should conduct thorough tests to identify the bugs and determine which ones are truly problematic👍. |
Our documentations says here:
Which isn't true for collections.
Binding this:
totally works fine, with those properties:
and those:
Same works for
Set
.For arrays, the paragraph in the documentation holds true.
The text was updated successfully, but these errors were encountered: