Skip to content

Add the file and parser packages to the add-opens compiler arguments - #17

Merged
wmdietl merged 1 commit into
masterfrom
typetools-3.50.0-merge
Oct 1, 2026
Merged

wmdietl merged 1 commit into
masterfrom
typetools-3.50.0-merge

Conversation

@wmdietl

@wmdietl wmdietl commented Oct 1, 2026

Copy link
Copy Markdown
Member

The Checker Framework now parses Java expressions with javac's parser, which needs access to the com.sun.tools.javac.file and com.sun.tools.javac.parser packages. guava/pom.xml opens the other compiler packages but not these two, so the Checker Framework run on guava failed with an IllegalAccessError for JavacFileManager. The top-level and android POMs already list them.

This pairs with the Checker Framework pull request that merges the 3.50.0 release into EISOP and uses the same branch name, typetools-3.50.0-merge, so CI picks it up automatically. It is harmless on its own, so it can be merged before that pull request.

🤖 Generated with Claude Code

…uments

The new javac-based parser in the Checker Framework uses classes from
com.sun.tools.javac.file and com.sun.tools.javac.parser.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GW8C4XvQcY7RQkVAqStDB6
Copilot AI balanced review requested due to automatic review settings October 1, 2026 04:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused configuration change is consistent with existing javac access settings and addresses the reported failure.

Review effort: Balanced
Findings: None

What changed in this PR

Adds the required javac package access for Checker Framework compatibility.

Changes:

  • Opens javac.file and javac.parser on JDK 9+.
File Description
guava/​pom.xml Adds the missing compiler module access arguments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@wmdietl
wmdietl merged commit 2ac376f into master Oct 1, 2026
5 of 12 checks passed
@wmdietl
wmdietl deleted the typetools-3.50.0-merge branch October 1, 2026 11:55
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