Repository navigation
Fix Maven 3.10 JDK 8 surefire failure and bump wrapper to 3.10.0 - #520
Merged
Merged
Conversation
compile-testing declares com.sun:tools (system scope, tools.jar) only via a file-activated profile, and Maven 3.10 no longer resolves transitive system-scope dependencies. On JDK 8 the surefire fork classpath therefore lost com.sun.source.util.TreeScanner, breaking ConstraintMetaProcessorTest. Re-declare com.sun:tools as a direct dependency in a jdk1.8-activated profile and re-apply the 3.10.0 wrapper bump reverted in a3bce84. Co-Authored-By: GLM-5.3-Flash-EXL3 <noreply@anthropic.com>
making
added a commit
that referenced
this pull request
Oct 5, 2026
Co-Authored-By: GLM-5.3-Flash-EXL3 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NoClassDefFoundError: com/sun/source/util/TreeScannerinConstraintMetaProcessorTeston JDK 8Root cause
compile-testingdeclarescom.sun:tools(system scope,${java.home}/../lib/tools.jar) only via a file-activated profile in its own POM. Maven 3.10 no longer resolves transitive system-scope dependencies, so on JDK 8 the class disappears from the surefire fork classpath (verified by diffing the booter jar manifests between 3.9.16 and 3.10.0 runs; surefire 3.6.0 is identical in both).Fix
Declare
com.sun:toolsas a direct dependency in ajdk1.8-activated profile (direct system-scope deps are still resolved by Maven 3.10; on JDK 9+com.sun.sourcecomes from thejdk.compilermodule).Verification
ConstraintMetaProcessorTest11/11 greenFull matrix (8/11/17/21) to be confirmed by CI on this PR.
🤖 Generated with Claude Code