Skip to content

Use inherited EMPTY_RANGE in JavaOutput to eliminate Formatter dependency. - #1453

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_979059162
Sep 10, 2026
Merged

Use inherited EMPTY_RANGE in JavaOutput to eliminate Formatter dependency.#1453
copybara-service[bot] merged 1 commit into
masterfrom
test_979059162

Conversation

@copybara-service

Copy link
Copy Markdown

Use inherited EMPTY_RANGE in JavaOutput to eliminate Formatter dependency.

This change replaces Formatter.EMPTY_RANGE references in JavaOutput with the inherited InputOutput.EMPTY_RANGE constant. Referencing Formatter dynamically loads javac AST classes depending on com.sun.source.tree.Tree, which causes NoClassDefFoundError in applications executing on JRE runtimes lacking the jdk.compiler module.

…ency.

This change replaces Formatter.EMPTY_RANGE references in JavaOutput with the inherited InputOutput.EMPTY_RANGE constant. Referencing Formatter dynamically loads javac AST classes depending on com.sun.source.tree.Tree, which causes NoClassDefFoundError in applications executing on JRE runtimes lacking the jdk.compiler module.

PiperOrigin-RevId: 979102692
@copybara-service
copybara-service Bot merged commit ed87207 into master Sep 10, 2026
12 checks passed
@copybara-service
copybara-service Bot deleted the test_979059162 branch September 10, 2026 11:23
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.

1 participant