-
Notifications
You must be signed in to change notification settings - Fork 38.2k
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
Avoid infinite recursion in BeanValidationBeanRegistrationAotProcessor with recursive generics #33950
Conversation
1b88059
to
90ea219
Compare
I see this is marked as release 6.2.1 but I guess that is a month away. Anyway to get this fix now? |
@bjorntj, we will decide when to release 6.2.1 within the team in the coming days. |
This has been merged into Thanks for the PR and for collaborating with me on this at Hack.Commit.Push 2024! 👍 |
Is there a workaround for this fix or do we need to wait for the next release? Removing the |
It depends... If you need the AOT processing to occur, no, there is unfortunately no workaround, and you'll have to wait for the 6.2.1 release which is scheduled for next Thursday. However, if you just want to run your tests via the build or build your application for standard JVM deployment, you could disable the AOT processing when you run the build. |
Thanks @sbrannen thats what I thought. In my case I'm running the |
Prior to this commit, AOT processing for bean validation failed with
StackOverflowError
for constraints with fields having recursive generic types. With this change, the processing aborts preemptively when a cycle is detected.StackOverflowError
#33936