Skip to content

[GR-68047] Split up and rename future defaults. #11790

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

This allows gradual evolution of community code as well as separate promotion of individual options to default.

The reason is that we will not be able to promote our code gradually to future defaults. Say we want to move security providers to run time by default in 26 and say the library code does the following:

if (!System.getProperty("org.graalvm.nativeimage.future-defaults.run-time-initialized-jdk")) {
    RuntimeClassInitialization.initializeAtBuildTime("...");
    ...
}

Now when we promote the security providers to default, all of the users that don't use --future-defaults will get the code above executed which is not correct anymore.

By having fine-grained properties we avoid that because the property will be set to "true" indefinitely and the code snippet above will take the right turn for all future versions.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 25, 2025
This allows gradual evolution of community code as well as separate promotion of individual options to default.
@graalvmbot graalvmbot force-pushed the vj/GR-68047-fine-grained-future-defaults branch from c415fc1 to e2e211c Compare July 29, 2025 16:42
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