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

@graalvmbot graalvmbot commented Jul 25, 2025

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 (!Boolean.parseBoolean(System.getProperty("org.graalvm.nativeimage.future-defaults.run-time-initialize-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
@graalvmbot graalvmbot force-pushed the vj/GR-68047-fine-grained-future-defaults branch 3 times, most recently from 42c9899 to 1ca3351 Compare July 31, 2025 11:00
@graalvmbot graalvmbot force-pushed the vj/GR-68047-fine-grained-future-defaults branch from 1ca3351 to 14b9cb4 Compare August 5, 2025 20:12
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 14b9cb4 to 6cf04dd Compare August 6, 2025 11:15
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