Remove pesky restricted method warnings in tests. (#128212)

Since our unit and IT tests run as unnamed modules we should add `--enable-native-access=ALL-UNNAMED` to suppress the pesky warning that arise from calls to `System::load`.
This commit is contained in:
Chris Hegarty 2025-05-27 01:23:09 -07:00 committed by GitHub
parent 0a46527232
commit 2134a1e6e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ public abstract class ElasticsearchTestBasePlugin implements Plugin<Project> {
"--add-opens=java.base/java.nio.file=ALL-UNNAMED",
"--add-opens=java.base/java.time=ALL-UNNAMED",
"--add-opens=java.management/java.lang.management=ALL-UNNAMED",
"--enable-native-access=ALL-UNNAMED",
"-XX:+HeapDumpOnOutOfMemoryError"
);