Skip to content

Conditions on overloaded beans not honored #31080

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
wants to merge 1 commit into from
Closed

Conditions on overloaded beans not honored #31080

wants to merge 1 commit into from

Conversation

cagliostro92
Copy link

As pointed out in the issue #30688 the conditions on the overloaded beans aren't honored in all cases.
This is due to the fact that the ConfigurationClassBeanDefinitionReader class bases its logic about which bean method should be skipped on the method name only. The solution provides a brand-new method String getMethodSignature(); in the MethodMetadata class, based on which will be decided if a bean should be skipped.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 20, 2023
@quaff
Copy link
Contributor

quaff commented Aug 21, 2023

I confirm this PR fixes #30688

@quaff
Copy link
Contributor

quaff commented Aug 21, 2023

Related to #31073

@snicoll
Copy link
Member

snicoll commented Aug 22, 2023

Thanks for the PR but we've declined this use case, see #30688 (comment)

@snicoll snicoll closed this Aug 22, 2023
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants