-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upgrade to JDK 22 #14
Conversation
I think if this PR is WIP it might be a good idea to use the GitHub "Draft" feature. |
We can't use it in a private repo without paying 😕 |
3e689ba
to
b184c65
Compare
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.
I would probably try to split the bouncy change off from this PR. It somehow seems unrelated.
Other than that, approved.
b184c65
to
cebed71
Compare
* Use Java Toolchains to use JDK 22 for compile/test * Remove `--enable-preview` * Use JDK 21 for -api and -bouncy modules (we're using a JDK 21 feature in API currently, we need to backport this to en earlier JDK version) * Use JDK 21 temporarily for Kotlin examples (until Kotlin supports JDK 22) * Use BouncySecp256k1 in the Kotlin examples (which means they won't run until Bouncy is finished) but they will at least compile. * Update the extract-headers.sh script to work with JDK 22 and the latest jextract * Update OpaqueKeyPair and Secp256k1Foreign to use the JDK 22 FFM API * Replace the `o.b.s.f.jextract` Java files with the files generated by the latest jextract.
cebed71
to
00304d9
Compare
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.
Approved. I only wonder why the jextract is under version control if it's generated as you say.
I think the recommend use of |
This PR will resolve Issue #6 and Issue #9
--enable-preview
o.b.s.f.jextract
Java files with the files generated by the latest jextract.This is WIP because the GitHub Actions build needs an update.