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 StackOverflowError in ReflectionUtils #34171

Conversation

alidandach
Copy link
Contributor

Issue

This PR addresses a StackOverflowError in ReflectionUtils when processing fields with cyclic dependencies during AOT compilation.

Fix

  • Added defensive programming in doWithFields to track visited classes and prevent infinite recursion.

Fixes #34170

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 28, 2024
@sbrannen
Copy link
Member

We addressed this differently in #33950 in 6.2.1.

In light of that, I’m closing this PR.

If you still encounter the issue after 6.2.1, please let us know.

@sbrannen sbrannen closed this Dec 28, 2024
@sbrannen sbrannen added status: declined A suggestion or change that we don't feel we should currently apply type: regression A bug that is also a regression in: core Issues in core modules (aop, beans, core, context, expression) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 28, 2024
@snicoll snicoll removed type: regression A bug that is also a regression in: core Issues in core modules (aop, beans, core, context, expression) labels Dec 28, 2024
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.

StackOverflowError in ReflectionUtils during AOT Compilation
4 participants