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

Fix introduction advice on generated types with error checking APIs #11654

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

graemerocher
Copy link
Contributor

The previous fix threw a postpone exception when accessing interfaces but this creates a catch 22 since type element visitors need to be able to navigate the AST without errors.

However it a bean definition should never be generated if the type has errors in the signature. So this adds special handling for BeanDefinitionInjectProcessor to postpone if there are errors and it hasn't already been postponed.

Possibly we should hard fail and adds APIs to retrieve the error.

… for errors
@graemerocher graemerocher requested a review from dstepanov March 12, 2025 09:55
@graemerocher graemerocher added the type: bug Something isn't working label Mar 12, 2025
@graemerocher graemerocher merged commit 8603b88 into 4.7.x Mar 12, 2025
18 of 20 checks passed
@graemerocher graemerocher deleted the introduction-advice-missing-types-bug branch March 12, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants