mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
e4d03f6625
Prior to this commit, fields that are not allowed for binding were always skipped and would not be bound. But the field and default marker support (with the "_" and "!" prefixes) would be still considered and could trigger collection instantiation/autogrow. While this does not cause unwanted binding, this allocates memory for no reason. This commit revisits the binding algorithm to only consider default and field marker support if the regular field is allowed. Fixes gh-36625