Skip to content

A restricted method in java.lang.System has been called #4182

@sormuras

Description

@sormuras

https://github.com/junit-team/junit5/actions/runs/12211323266/job/34068453967?pr=4181#step:7:506

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/home/runner/.gradle/wrapper/dists/gradle-8.11.1-bin/bpt9gzteqjrbo1mjrsomdt32c/gradle-8.11.1/lib/native-platform-0.22-milestone-26.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

Steps to reproduce

Run build on JDK 25

Deliverables

  • Update to versions not loading native code or use --enable-native-access=ALL-UNNAMED

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions