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
Comment From: sbrannen
We addressed this differently in https://github.com/spring-projects/spring-framework/pull/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.