Skip to content

Commit

Permalink
ORC-1707: Fix sun.util.calendar IllegalAccessException when SparkBe…
Browse files Browse the repository at this point in the history
…nchmark 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?
#1909 (comment)

### 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 <sychen@ctrip.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
  • Loading branch information
cxzl25 authored and dongjoon-hyun committed May 1, 2024
1 parent f919fab commit 5bb2346
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
@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();
Expand Down

0 comments on commit 5bb2346

Please sign in to comment.