Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
sormuras opened this issue Dec 7, 2024 · 3 comments
Closed
1 task

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

sormuras opened this issue Dec 7, 2024 · 3 comments

Comments

@sormuras
Copy link
Member

sormuras commented Dec 7, 2024

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
@marcphilipp
Copy link
Member

This is a coming from Gradle so there's nothing we can do about it. I'm sure they're already aware because it is also printed on JDK 24. I think we can close this issue since we're keeping the version of Gradle we're using up-to-date already.

@marcphilipp
Copy link
Member

I've verified it originates in Gradle and opened an issue:
gradle/gradle#31625

@marcphilipp marcphilipp closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2024
Copy link

github-actions bot commented Dec 8, 2024

Please assign a status label to this issue.

@github-actions github-actions bot reopened this Dec 8, 2024
@marcphilipp marcphilipp closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants