Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MNG-8721] Prints Warnings about JANSI when running on JDK 24 #10360

@jira-importer

Description

@jira-importer

Markus Karg opened MNG-8721 and commented

mvn -version results in the following warning on JDK 24:

 

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:/C:/Program%20Files/apache-maven-3.9.9/lib/jansi-2.4.1.jar|file:///C:/Program%20Files/apache-maven-3.9.9/lib/jansi-2.4.1.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{}{}Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937){}
Maven home: C:\Program Files\apache-maven-3.9.9
Java version: 24.0.1, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-24.0.1.9-hotspot
Default locale: de_DE, platform encoding: UTF-8
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

 


Affects: 3.9.9

Issue Links:

  • MNG-8248 WARNING: A restricted method in java.lang.System has been called
    ("duplicates")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions