Skip to content

JLine causes warning about restricted method #1687

@hohwille

Description

@hohwille

Task summary

In IDEasy I now always see this warning message before a progress bar is rendered caused by JLine library.

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.jline.nativ.JLineNativeLoader in an unnamed module (file:/D:/projects/_ide/installation/bin/ideasy.exe)
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

Additional context

We should check if we can enable native access in GraalVM to prevent this warning.
Also we can check if we can suppress the warning when we provide the JVM arg at runtime to the native image and add it to the ide function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions