Skip to content

[GR-75824] Runtime-configurable assertion support - #14272

Merged
graalvmbot merged 3 commits into
masterfrom
dnsimon/GR-75824
Aug 20, 2026
Merged

[GR-75824] Runtime-configurable assertion support#14272
graalvmbot merged 3 commits into
masterfrom
dnsimon/GR-75824

Conversation

@graalvmbot

@graalvmbot graalvmbot commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

This PR adds support to Native Image for these runtime assertions options:

    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions

This applies to all runtime loaded classes. If -H:+StrictRuntimeJavaOptions is specified, it also applies to runtime-initialized image classes.

The assertion status of build-time initialized classes is solely governed by the native image assertions options (same name and format as the above runtime assertion options). The assertion status of these classes is fixed at build-time. If StrictRuntimeJavaOptions is enabled, it also applies to runtime-initialized image classes.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 18, 2026
@graalvmbot
graalvmbot force-pushed the dnsimon/GR-75824 branch 4 times, most recently from 52a407c to 7e16e85 Compare August 19, 2026 16:15
@graalvmbot
graalvmbot merged commit 2d2937d into master Aug 20, 2026
3 checks passed
@graalvmbot
graalvmbot deleted the dnsimon/GR-75824 branch August 20, 2026 03: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.

3 participants