ITADN

PropertiesConfigPageGroup visitor causes StackOverflowError for nested @ConfigPageGroup types

#4822Openvenkateshwaracholan 创建于 2026-06-18
bug
### Describe the bug ## Describe the Bug While generating configuration documentation, `PropertiesConfigPageGroup.visitType()` revisits the same `TypeElement` by calling: ```java id="8jvks4" e.accept(this, env); ``` This works for simple cases, but when a `@ConfigPageGroup` contains nested types (such as nested classes, interfaces, or records), the visitor ends up repeatedly dispatching back to the same element. As a result, the traversal never progresses to the enclosed elements and eventually fails with a `StackOverflowError`. The similar visitor implementation in `PropertiesConfigs` already avoids this problem by iterating over enclosed elements directly, which allows nested types to be processed correctly. ### To Reproduce _No response_ ### Actual Behavior _No response_ ### Expected Behavior _No response_ ### Additional context _No response_ ### System information _No response_
0 条评论