Skip to content

JansiLoader is calling a restricted method in java.lang.System #313

@BelgianDev

Description

@BelgianDev

Hey! Updating to Java 25 LTS causes the library to print a warning.

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/home/raftdev/Documents/Dev/Cardinal/build/libs/Cardinal-dev.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

As told adding the --enable-native-access=ALL-UNNAMED hides this warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions