Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for initializing nested object when nothing bound
When using constructor binding, if no properties are bound to a nested property, the top-level instance will be created with a null value for the nested property. This commit introduces support for an empty `@DefaultValue` which indicates that an instance of the nested property must be created even if nothing is bound to it. It honors any `@DefaultValue` annotations that the nested property might have in its constructor. Closes gh-18917
- Loading branch information
Showing
4 changed files
with
287 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters