Skip to content

switch to Java 21 for build/Docker #4759

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

Merged
merged 3 commits into from
Apr 17, 2025
Merged

switch to Java 21 for build/Docker #4759

merged 3 commits into from
Apr 17, 2025

Conversation

vladak
Copy link
Member

@vladak vladak commented Apr 15, 2025

The bytecode target is still Java 11 to support older deployments.

I had to solve multiple issues:

  • bump Mockito so that it uses newer Byte buddy library which supports Java 21
  • address non-serializable members by either switching them to transient or using Serializable type
  • avoid this leaks from constructors or suppress the warning
  • udpate Chronicle Map so that it does not attempt to get method not present in Java 21

Tested the newly built Docker image with pre-existing data root. Also tested with JRE 11 on Solaris x86 with pre-existing data-root and semi-complex setup (authorization, suggester, annotation cache).

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 15, 2025
@vladak vladak requested a review from ginoaugustine April 15, 2025 10:55
vladak added 3 commits April 17, 2025 10:20
mostly for building, with the exception of Tomcat in Docker

fixes oracle#4459
@vladak vladak merged commit e84d396 into oracle:master Apr 17, 2025
10 checks passed
@vladak vladak deleted the java_21 branch April 17, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants