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 5bb234677 ORC-1707: Fix `sun.util.calendar` IllegalAccessException 
when SparkBenchmark runs on JDK17
5bb234677 is described below

commit 5bb23467794b283fe4f2ab15bc2668ea0eb40e0b
Author: sychen <[email protected]>
AuthorDate: Wed May 1 09:05:19 2024 -0700

    ORC-1707: Fix `sun.util.calendar` IllegalAccessException when 
SparkBenchmark runs on JDK17
    
    ### What changes were proposed in this pull request?
    This PR aims to fix `sun.util.calendar` IllegalAccessException when 
SparkBenchmark runs on JDK17.
    
    ### Why are the changes needed?
    https://github.com/apache/orc/pull/1909#discussion_r1585891308
    
    ### How was this patch tested?
    GA
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No
    
    Closes #1919 from cxzl25/ORC-1707.
    
    Authored-by: sychen <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .../spark/src/java/org/apache/orc/bench/spark/SparkBenchmark.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/java/bench/spark/src/java/org/apache/orc/bench/spark/SparkBenchmark.java 
b/java/bench/spark/src/java/org/apache/orc/bench/spark/SparkBenchmark.java
index b390843a2..86e65ae81 100644
--- a/java/bench/spark/src/java/org/apache/orc/bench/spark/SparkBenchmark.java
+++ b/java/bench/spark/src/java/org/apache/orc/bench/spark/SparkBenchmark.java
@@ -74,7 +74,8 @@ import java.util.concurrent.TimeUnit;
 @BenchmarkMode(Mode.AverageTime)
 @OutputTimeUnit(TimeUnit.MICROSECONDS)
 @AutoService(OrcBenchmark.class)
-@Fork(jvmArgsAppend = "--add-opens=java.base/sun.nio.ch=ALL-UNNAMED")
+@Fork(jvmArgsAppend = {"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED",
+    "--add-opens=java.base/sun.util.calendar=ALL-UNNAMED"})
 public class SparkBenchmark implements OrcBenchmark {
 
   private static final Path root = Utilities.getBenchmarkRoot();

Reply via email to