AnnotationScanner scanning leads to StackOverflowError with recursive annotation #31400
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: kotlin
An issue related to Kotlin support
type: regression
A bug that is also a regression
Milestone
Affects: 6.0.12
I am trying to update from Spring boot 2.7.13 to 3.1.4.
We are using this custom annotation to document configuration properties.
When I run the app, it fails:
I've epxlored what happens, and the issue is that method
org.springframework.core.annotation.AnnotationTypeMapping#computeSynthesizableFlag
finds thechildren
property of ourDocProperty
class annotation and calls theforAnnotationType
, with thechildren
's type which isDocProperty
again. And that's infinite loop.It's reproducible here: tolgee/tolgee-platform@259cd31 (the specific commit)
The text was updated successfully, but these errors were encountered: