Skip to content

Reject bean names with factory prefix for Bean Overrides #33674

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
sbrannen opened this issue Oct 9, 2024 · 0 comments
Closed

Reject bean names with factory prefix for Bean Overrides #33674

sbrannen opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
in: test Issues in the test module type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Oct 9, 2024

Since we do not support bean names with a factory prefix for Bean Overrides, we should eagerly reject any such name supplied by a user.

For example, @TestBean("&messageService") and @MockitoBean("&messageService") should result in an immediate exception informing the user that bean overrides are supported for instances created by factory beans but not the factory beans themselves.

@sbrannen sbrannen added in: test Issues in the test module type: enhancement A general enhancement labels Oct 9, 2024
@sbrannen sbrannen added this to the 6.2.0-RC2 milestone Oct 9, 2024
@sbrannen sbrannen self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant