Repository navigation
Support JDK 27 - #1075
Draft
kyakdan wants to merge 7 commits into
Draft
Support JDK 27#1075kyakdan wants to merge 7 commits into
kyakdan wants to merge 7 commits into
Conversation
ASM 9.9.1 rejects class files newer than Java 26 (#1074). ASM 9.11.1 supports up to Java 28.
JDK 24+ warns when Jazzer loads its native libraries without native access enabled, and a future JDK will deny it.
By default, installing the agent loads Jazzer's native library. A JVM started with --illegal-native-access=deny made it fail with nested exceptions deep inside Jazzer, so name the required flag instead.
Only the jazzer binary enables it itself, JUnit users have to pass the flag to the test JVM.
JDK 24+ warns about the memory-access methods of sun.misc.Unsafe, which would fail every fuzz target test until #1069 is fixed.
contrib_rules_jvm 0.27.0 starts them with -Djava.security.manager=allow, which JDK 24+ rejects. Newer versions don't, but break JUnit 5 tests on Windows.
rules_java doesn't provide JDK 27, so register Zulu 27 like the existing JDK 8 and 21 toolchains.
kyakdan
force-pushed
the
kyakdan-asm-java-27-support
branch
from
December 1, 2026 13:28
d8bbc25 to
0c646c0
Compare
This branch has not been deployed
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
0c646c0a098c068c306e27d22f68b88c6a0fd2d8↑ New tests fail without their fixes (ASM 9.9.1, old
AgentInstaller, missing guards).↑ Four review rounds by three model families ended ready to push.
↓ The
contrib_rules_jvmpatch was added after those reviews and is covered by CI only, not by another review round.Unsupported class file major version 71on JDK 27 with ASM 9.9.1, gone with 9.11.1.↑ ASM 9.10 release notes add Java 27 support.
ClassReadercalled fromHookInstrumentor, the code path the new test exercises.↓ The reporter's exact project wasn't run.
Fixes #1074.
Jazzer couldn't instrument Java 27 class files, so on JDK 27 classes silently loaded without coverage or hooks. This PR fixes that, enables native access for Jazzer's own JNI libraries, and adds JDK 27 to CI.
Commits
--enable-native-access=ALL-UNNAMEDin thejazzerlauncher and the fuzz-test wrapper. JDK 24+ warns when Jazzer loads its native libraries without it, and JEP 472 plans to deny it in a future release.Agent.install.--enable-native-access=ALL-UNNAMED(with-XX:+IgnoreUnrecognizedVMOptions) to the test JVM.sun.misc.Unsafewarnings until Jazzer moves offUnsafe(Jazzer runtime calls sun.misc.Unsafe memory-access methods that JDK 24+ warns about (JEP 471/498) #1069).-Djava.security.manager=allowthatcontrib_rules_jvm0.27.0 always passes, which JDK 24+ rejects.Notes for reviewers
contrib_rules_jvmstays at 0.27.0 and is patched (commit 6). Versions ≥ 0.32 drop the flag but pass the JUnit runner a relative-javaagentpath, which breaks all JUnit 5 tests on Windows unless runfiles are enabled there.rules_javastill adds the flag on JDK 17–23, which need it for the runner'sSystem.exitprotection.System.exitprotection, since JDK 24+ has no security manager.CI
Upstream Actions are locked by the billing issue, so this PR's checks fail without running. CI ran on the fork for the head commit: