Skip to content

Upgrade to Java 25 #8425

@SamCarlberg

Description

@SamCarlberg

Notable changes from Java 21:

  • Generational ZGC by default
  • Compact object headers for lower memory usage
  • Module imports (see [all java] Add Java module support #7424)
  • 32-bit x86 support has been removed (ie 32-bit Windows). ARM32 is still supported
  • Flexible constructor bodies (statements before super for eg parameter validation)
  • Anonymous patterns and lambda parameters eg mech.run(_ -> setMotor(1.0))

Requires updates to the systemcore docker images to bundle Java 25

Requires Bazel changes; rules_java is changed for Java 25. See bazelbuild/bazel#27680

Metadata

Metadata

Assignees

No one assigned

    Labels

    20272027 targetbuildMonorepo organization, gradle/cmake, upstream_utils, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions