-
Notifications
You must be signed in to change notification settings - Fork 98
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
Java 22 Support #404
Comments
Can you test with the snapshot version 1.0.9.BUILD-SNAPSHOT of BlockHound that is available from https://repo.spring.io/snapshot ? the snapshot is now using the latest byte buddy version. thanks |
Awesome, yup will do... |
the above error doesn't happen, but getting the instrumentation error... VM arg -
Couldn't find anything related to the argument in JDK 22 docs (on the surface...). Before I go any further, wanted to validate my findings.
|
Hi @dwarakaprasad , I also reproduced the issue, I'm trying to figure out. thanks. |
based on discussions from raphw/byte-buddy#1609 (comment), it's likely that there is a bug in OpenJDK 22 around the I will first isolate the problem in a reproducer sample code outside of BlockHound and will submit it to OpenJDK for version 22. for the moment, I'm attaching here a reproducer based on BlockHound here: (see raphw/byte-buddy#1609 (comment) on how to run the blockhound-issue-410.tgz reproducer test). I'm now working on doing a standalone reproducer sample code in order to submit it to OpenJDK 22. |
Actually, there was a problem in BlockHound because in JDK22, the The PR #407 for this problem has been merged and has been pushed to the snapshot repo. thanks. |
Yeah sure, will keep you posted. |
Hi @dwarakaprasad, We may release BlockHound this week; but I just wonder if you had a chance to validate the 1.0.9.BUILD-SNAPSHOT version which has the fix for jdk22 support ? thanks. |
Hi @pderop, Sorry for the delayed reply. I was able to add your changes to my project and was able to successful move past the issue. Thank you so much. |
thanks a lot for having verified the PR, then let's release all this 🚀 |
The BlockHound 1.0.9.RELEASE version has been released and includes the fix. |
Expected Behavior
The following error is thrown when using the java 22 runtime,
was able to move forward with using -Dreactor.blockhound.shaded.net.bytebuddy.experimental=true
Actual Behavior
Steps to Reproduce
Possible Solution
Work-around
use -Dreactor.blockhound.shaded.net.bytebuddy.experimental=true
Based on the response from byte-buddy -1.14.13 supports Java 22
Your Environment
reactor-core: 3.6.4
netty
, ...):spring-boot: 3.2.4
reactor-netty-core: 1.1.17
java -version
):openjdk version "22" 2024-03-19
OpenJDK Runtime Environment Temurin-22+36 (build 22+36)
OpenJDK 64-Bit Server VM Temurin-22+36 (build 22+36, mixed mode, sharing)
uname -a
):Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
The text was updated successfully, but these errors were encountered: