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

Code generation not applying shortcut if the target method is ambiguous #30749

Conversation

Devashish2293
Copy link

Closes gh-29278

Added logic to check if target method is ambiguous while generating bean definition method

Please check issue

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 26, 2023
@sbrannen sbrannen added the theme: aot An issue related to Ahead-of-time processing label Jun 26, 2023
@snicoll
Copy link
Member

snicoll commented Jul 12, 2023

Thanks for the PR @Devashish2293 - Unfortunately, not applying the generator in such a case breaks the related bean as it does not have a factory method anymore. See #29278 for more details.

@snicoll snicoll closed this Jul 12, 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 Jul 12, 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 theme: aot An issue related to Ahead-of-time processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code generation should only apply shortcut if the target method is not ambiguous
4 participants