-
Notifications
You must be signed in to change notification settings - Fork 337
Run regression tests on JDK 26 #1526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+10
−8
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
45e7db4
test on jdk 26
msridhar d14c1f8
spotless
msridhar aa3bf3e
clarify versions for jdk-recent-unit-tests
msridhar 171a0eb
try zulu
msridhar 29f79a6
try something else
msridhar d779192
shift vendor flag
msridhar daf1d6c
Merge branch 'master' into java-26
msridhar 5c4ce9a
Merge branch 'master' into java-26
msridhar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: uber/NullAway
Length of output: 5555
🏁 Script executed:
Repository: uber/NullAway
Length of output: 39
🌐 Web query:
Foojay resolver Gradle plugin version 1.0.0 Java 26 support toolchain💡 Result:
The Foojay resolver Gradle plugin version 1.0.0, released on May 19, 2025, supports Java toolchains via the Foojay Disco API. Java 26 reached general availability on March 17, 2026. The plugin resolves toolchains using the major Java version specified in the toolchain, querying the Disco API for matching distributions. No sources indicate limitations preventing Java 26 support; the plugin dynamically fetches available JDKs from the API, which tracks all OpenJDK builds including recent releases like Java 26. The plugin requires Gradle 7.6+ and Java 17+ to run. Usage example in settings.gradle.kts: plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0" } java { toolchain { languageVersion.set(JavaLanguageVersion.of(26)) } }
Citations:
🏁 Script executed:
Repository: uber/NullAway
Length of output: 1468
🏁 Script executed:
Repository: uber/NullAway
Length of output: 1973
🏁 Script executed:
Repository: uber/NullAway
Length of output: 2802
🏁 Script executed:
Repository: uber/NullAway
Length of output: 829
Add explicit testJdk26 disable to modules with fixed JDK targets, like jdk-recent-unit-tests.
Foojay resolver 1.0.0 properly provisions Java 26 toolchains via the Disco API; the shared convention's addition of testJdk26 won't cause CI hard-failures. However,
jdk-recent-unit-testsexplicitly targets JDK 25 and disables testJdk17 and testJdk21 to enforce this (per its comment "we only run on the recent JDK version specified above"). This module now inherits testJdk26 from the shared convention but does not disable it, breaking its module-specific JDK targeting. AddonlyIf { false }to testJdk26 in affected modules using fixed JDK versions.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should run jdk-recent-unit-tests on JDK 25 and newer. I'll clarify the comment to indicate this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msridhar, thanks for the clarification! That makes sense —jdk-recent-unit-testsis intended to run on JDK 25 and newer, so inheritingtestJdk26from the shared convention is exactly the right behavior. My concern was incorrect. Appreciate you updating the comment to make this intent clear.✏️ Learnings added
🧠 Learnings used