Skip to content

Cannot bind input argument with nested beans and primary constructors #155

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

Closed

Conversation

koenpunt
Copy link
Contributor

Arguments with nested beans with a primary constructor (e.g. kotlin data classes) were not instantiated correctly.

By recursively calling instantiate on map types this works as expected.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 29, 2021
@koenpunt koenpunt force-pushed the recursive-argument-instantiator branch from c14bc25 to b9dbaa6 Compare September 29, 2021 16:50
@bclozel bclozel self-assigned this Sep 29, 2021
@bclozel bclozel added in: core Issues related to config and core support type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 29, 2021
@bclozel bclozel added this to the 1.0.0-M3 milestone Sep 29, 2021
@bclozel bclozel changed the title Fix: instantiate nested beans for arguments using a primary constructor Cannot bind input argument with nested beans and primary constructors Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues related to config and core support type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants