Skip to content

WARNING: A restricted method in java.lang.System has been called V2 (regression) #11289

Description

@jandufek

Affected version

3.9.11

Bug description

This should be fixed in #10391, but actually, it is not. It still shows the same problem with Java 25 and Apache Maven 3.9.11

./mvnw clean install -DskipTests
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:/Users/honza/.m2/wrapper/dists/apache-maven-3.9.11-bin/86516310/apache-maven-3.9.11/lib/jansi-2.4.2.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

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.google.inject.internal.aop.HiddenClassDefiner (file:/Users/honza/.m2/wrapper/dists/apache-maven-3.9.11-bin/86516310/apache-maven-3.9.11/lib/guice-5.1.0-classes.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.inject.internal.aop.HiddenClassDefiner
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release

Affects:: 3.9.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions