Skip to content

Conversation

ramesh-nair-dev
Copy link

Summary

Update Spring Boot documentation to reflect JEP 514 AOT Cache flags in Java 25.

Changes Made

  • Updated class-data-sharing.adoc: replaced old -XX:AOTMode/AOTConfiguration flags with -XX:AOTCacheOutput/-XX:AOTCache.
  • Updated container-images/dockerfiles.adoc: updated Dockerfile examples to use the new AOTCache flags.

Motivation

Old documentation used outdated JVM flags. This update ensures docs match the new standard and are clear for users.

References

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 21, 2025
Comment on lines 41 to 42
$ java -XX:AOTMode=record -XX:AOTConfiguration=app.aotconf -Dspring.context.exit=onRefresh -jar my-app.jar
$ java -XX:AOTMode=create -XX:AOTConfiguration=app.aotconf -XX:AOTCache=app.aot -jar my-app.jar
$ java -XX:AOTCacheOutput=app.aot -Dspring.context.exit=onRefresh -jar my-app.jar
$ java -XX:AOTCache=app.aot -jar my-app.jar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right to me. As I understand it, the new flags will only work with Java 25 and Spring Boot supports Java 17 and later. If that understanding is correct, the documentation will have to show two examples. One for Java 17–24 and one for Java 25.

Copy link
Author

@ramesh-nair-dev ramesh-nair-dev Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the file please review it

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AotCache (leyden) was not in java 17. It appeared with java 24

@ramesh-nair-dev
Copy link
Author

ramesh-nair-dev commented Sep 22, 2025 via email

@wilkinsona
Copy link
Member

Thanks again for the PR. Unfortunately, this isn't really heading in the right direction as the latest updates aren't quite right. As is often the case with documentation changes, I think it'll be easier if a member of the core team takes care of this. Thanks anyway.

@wilkinsona wilkinsona closed this Sep 22, 2025
@wilkinsona wilkinsona added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 22, 2025
@ramesh-nair-dev
Copy link
Author

ramesh-nair-dev commented Sep 22, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants