venkateshwaracholan opened a new pull request, #4823:
URL: https://github.com/apache/polaris/pull/4823

   ## Summary
   
   
   
   This change fixes a recursion issue in 
`PropertiesConfigPageGroup.visitType()` that could cause configuration 
documentation generation to fail with a `StackOverflowError` when processing 
nested types inside a `@ConfigPageGroup`.
   
   The previous implementation recursively revisited the same `TypeElement` 
using `e.accept(this, env)`. When nested classes, interfaces, or records were 
present, this resulted in the visitor repeatedly dispatching to itself instead 
of traversing the enclosed elements, eventually exhausting the call stack.
   
   To resolve this, the visitor now processes the type's enclosed elements 
directly. This aligns the implementation with the traversal approach already 
used in `PropertiesConfigs` and ensures nested configuration elements are 
handled correctly.
   
   ## Changes
   
   * Replaced self-recursive `TypeElement` visitation with traversal of 
enclosed elements.
   * Added regression tests covering nested classes, interfaces, and records.
   * No public API changes.
   * No behavioral changes outside of the configuration documentation generator.
   
   
   
   ## Checklist
   - [ ] ๐Ÿ›ก๏ธ Don't disclose security issues! (contact [email protected])
   - [ ] ๐Ÿ”— Clearly explained why the changes are needed, or linked related 
issues: Fixes #4822
   - [ ] ๐Ÿงช Added/updated tests with good coverage, or manually tested (and 
explained how)
   - [ ] ๐Ÿ’ก Added comments for complex logic
   - [ ] ๐Ÿงพ Updated `CHANGELOG.md` (if needed)
   - [ ] ๐Ÿ“š Updated documentation in `site/content/in-dev/unreleased` (if needed)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to