Skip to content

fix(jdk-codemodel): suppress javac diagnostics from stderr#19

Merged
deer merged 1 commit intomainfrom
analyze_error
Apr 10, 2026
Merged

fix(jdk-codemodel): suppress javac diagnostics from stderr#19
deer merged 1 commit intomainfrom
analyze_error

Conversation

@deer
Copy link
Copy Markdown
Collaborator

@deer deer commented Apr 10, 2026

Pass a no-op DiagnosticListener to compiler.getTask(...) instead of null. With null, javac writes errors to stderr when it encounters unresolvable types — a side effect callers cannot suppress. The no-op listener silences that output while preserving existing graceful degradation: attribution completes, unresolvable types become UnknownTypeUsage.

@deer deer merged commit 0d69f5c into main Apr 10, 2026
1 check passed
@deer deer deleted the analyze_error branch April 10, 2026 07:44
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