Skip to content

[docs] Defer options class initialization during scanning - #11560

Open
junmuz wants to merge 1 commit into
apache:masterfrom
junmuz:fix/docs-options-class-initialization
Open

junmuz wants to merge 1 commit into
apache:masterfrom
junmuz:fix/docs-options-class-initialization

Conversation

@junmuz

@junmuz junmuz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Purpose

Load options classes without initializing them so classes containing only excluded options do not require their runtime dependencies during documentation scans. This is a regression from #11551

Tests

Add a regression test with an excluded option whose initialization fails.

Load options classes without initializing them so classes containing only excluded options do not require their runtime dependencies during documentation scans.

Add a regression test with an excluded option whose initialization fails.
@junmuz

junmuz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

@JingsongLi @leaves12138 Can I get review on the PR?

@Akash3121 Akash3121 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Deferring class initialization with Class.forName(..., false, ...) cleanly avoids loading runtime dependencies for classes whose options are all @ExcludeFromDocumentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants