File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ itestJar {
131131
132132tasks. named(" test" ). configure {
133133 jvmArgs " --add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
134+ jvmArgs " --add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
134135}
135136
136137eclipse. classpath. file {
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ if (JavaVersion.current() >= JavaVersion.VERSION_17) {
149149 task. configure {
150150 jvmArgs " --add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
151151 jvmArgs " --add-opens=java.base/java.nio=ALL-UNNAMED" // Needed for org.apache.spark.SparkConf, which indirectly uses java.nio.DirectByteBuffer
152+ jvmArgs " --add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
152153 }
153154 }
154155}
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ if (JavaVersion.current() >= JavaVersion.VERSION_16) {
200200 if (task. getName(). startsWith(" test" ))
201201 task. configure {
202202 jvmArgs " --add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
203+ jvmArgs " --add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
203204 }}
204205}
205206
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ if (JavaVersion.current() >= JavaVersion.VERSION_16) {
184184 task. configure {
185185 jvmArgs " --add-opens=java.base/java.io=ALL-UNNAMED" // Needed for IOUtils's BYTE_ARRAY_BUFFER reflection
186186 jvmArgs " --add-opens=java.base/java.nio=ALL-UNNAMED" // Needed for org.apache.spark.SparkConf, which indirectly uses java.nio.DirectByteBuffer
187+ jvmArgs " --add-opens=java.base/java.lang=ALL-UNNAMED" // Needed for secure mock
187188 }}
188189}
189190
You can’t perform that action at this time.
0 commit comments