This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/main by this push:
new b4d81cb3c ORC-1908: Add `--enable-native-access=ALL-UNNAMED` to
Surefire argLine
b4d81cb3c is described below
commit b4d81cb3cda0a6db99d70fdced46507d910aee6c
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sun Jun 8 16:26:18 2025 -0700
ORC-1908: Add `--enable-native-access=ALL-UNNAMED` to Surefire argLine
### What changes were proposed in this pull request?
This PR aims to add `--enable-native-access=ALL-UNNAMED` to Surefire
`argLine`.
### Why are the changes needed?
To suppress the following warnings during testing.
```
[INFO] Running org.apache.orc.impl.TestZlib
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by
org.apache.hadoop.util.NativeCodeLoader in an unnamed module
(file:/Users/dongjoon/.m2/repository/org/apache/hadoop/hadoop-client-api/3.4.1/hadoop-client-api-3.4.1.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
```
### How was this patch tested?
Manual tests.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #2252 from dongjoon-hyun/ORC-1908.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
java/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/pom.xml b/java/pom.xml
index 260dc6ad7..674371a78 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -711,7 +711,7 @@
<configuration>
<trimStackTrace>false</trimStackTrace>
<reuseForks>false</reuseForks>
- <argLine>-Xmx2048m -XX:+IgnoreUnrecognizedVMOptions
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED</argLine>
+ <argLine>-Xmx2048m -XX:+IgnoreUnrecognizedVMOptions
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED
--enable-native-access=ALL-UNNAMED</argLine>
<environmentVariables>
<TZ>US/Pacific</TZ>
<LANG>en_US.UTF-8</LANG>