-
Notifications
You must be signed in to change notification settings - Fork 59
migrate to Java 21 #1033
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
migrate to Java 21 #1033
Conversation
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.
Pull Request Overview
This PR updates the project’s Java runtime from version 17 to 21 across Nix environments and Docker images, while adding a deprecation annotation and modernizing URI usage in tests.
- Bump OpenJDK in Nix shell and overlays to version 21
- Update Docker base images to Eclipse Temurin 21
- Mark a deprecated MemoryMXBean method and switch from URL to URI in tests
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| nix/shell.nix | Updated OpenJDK from 17 to 21 |
| nix/overlays.nix | Pointed jre overrides to OpenJDK 21 |
| cluster/images/splice-app/Dockerfile | Changed base image to eclipse-temurin:21 |
| cluster/images/canton/Dockerfile | Changed base image to eclipse-temurin:21 |
| canton/.../MemoryCheck.scala | Annotated deprecated getObjectPendingFinalizationCount |
| WalletAuth0FrontendIntegrationTest.scala | Imported java.net.URI and converted to URL |
| AnsAuth0FrontendIntegrationTest.scala | Imported java.net.URI and converted to URL |
Comments suppressed due to low confidence (2)
cluster/images/splice-app/Dockerfile:40
- Verify that the
eclipse-temurin:21-jdk-nobletag exists. If it does not, update to a valid Eclipse Temurin 21 image (e.g.,21-jdk-jammyor21-jdk).
FROM eclipse-temurin:21-jdk-noble
cluster/images/canton/Dockerfile:37
- Ensure the
eclipse-temurin:21-jdk-noblebase image tag is valid. Consider using an officially supported tag such as21-jdk-jammyor21-jdk.
FROM eclipse-temurin:21-jdk-noble
a4ae179 to
5ccdd0f
Compare
nicu-da
left a comment
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.
Nice, thanks!
We probs want to add a release note for this as well!
Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
- jammy will be removed for Java 22 releases; noble has been default for almost a year Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
Signed-off-by: Stephen Compall <stephen.compall@digitalasset.com>
5495494 to
d7ada58
Compare
Fixes #895.
Pull Request Checklist
Cluster Testing
/cluster_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./hdm_teston this PR to request it, and ping someone with access to the DA-internal system to approve it.PR Guidelines
Fixes #n, and mention issues worked on using#nMerge Guidelines