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:
parent
0a46527232
commit
2134a1e6e1
|
@ -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"
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue