-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Is there a plan to support higher versions of JDK, such as JDK 17? #1070
Comments
It's a good suggestion, I will try to support JDK17 in the next version, but I don't know how much work it will involve yet. The next version may not be released quickly, maybe in 2 months. Of course, if you are interested in sending a PR for this, you are very welcome to do so. |
I found a temporary way to solve the compile problem. |
@TaXueWWL @fengjiachun 我试着用jdk17,发现会导致rpc提示(注意是:CliService操作集群时,但是启动正常):Connection is null when do check!。实际不是网络问题,我降低到1.8就正常了。我感觉还是有很大问题 |
For more detail: #1083 |
After testing the sofa-jraft locally, I met some issues in using JDK 17, such as the |
Sorry, I made a mistake. I thought the author of #1083 had already found a solution. I will reopen this issue. |
Thanks for reopening this issue. The main issue in using sofa-jraft with higher JDK is that the difference of OpenJDK and Oracle JDK and the Unsafe has been move to |
Your question
Is there a plan to support higher versions of JDK, such as JDK 17?
Your scenes
we have already upgrade to jdk17
Your advice
when compile with jdk17, occur error:
...\sofa-jraft\jraft-core\src\main\java\com\alipay\sofa\jraft\util\internal\UnsafeIntegerFieldUpdater.java:20:16
java: 程序包sun.misc不存在
Environment
java -version
): jdk17uname -a
):The text was updated successfully, but these errors were encountered: