Skip to content
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

Document default constructor as fallback for multiple non-@Autowired constructors #24838

Closed
sbrannen opened this issue Apr 1, 2020 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: documentation A documentation task
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Apr 1, 2020

As mentioned by @ElmehdiBenh in #23263 (comment), our documentation currently fails to point out that a default constructor (if present) will be used as the fallback constructor for autowiring if multiple constructors are present and none of them is annotated with @Autowired.

We should therefore make this clear in the documentation, both in the Javadoc for @Autowired and in the reference manual.

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: documentation A documentation task labels Apr 1, 2020
@sbrannen sbrannen added this to the 5.2.6 milestone Apr 1, 2020
@sbrannen sbrannen self-assigned this Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

1 participant