File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ under the License.
117117 <doclint >none</doclint >
118118 <additionalparam >-Xdoclint:none</additionalparam >
119119 <!-- List of add-opens arg line arguments for tests -->
120- <surefire .add-opens.argLine>--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED --enable-native-access=io.netty.common --sun-misc-unsafe-memory-access=allow</surefire .add-opens.argLine>
120+ <surefire .add-opens.argLine>--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED --enable-native-access=io.netty.common ${surefire.unsafe-memory-access.argLine} </surefire .add-opens.argLine>
121+ <surefire .unsafe-memory-access.argLine/>
121122 <!-- org.apache:apache overrides -->
122123 <minimalJavaBuildVersion >17</minimalJavaBuildVersion >
123124 <maven .compiler.source>17</maven .compiler.source>
@@ -778,6 +779,17 @@ under the License.
778779 </reporting >
779780
780781 <profiles >
782+ <profile >
783+ <!-- Certain flags are required on newer JDK but not recognized on earlier JDK -->
784+ <id >jdk24</id >
785+ <activation >
786+ <jdk >[24,)</jdk >
787+ </activation >
788+ <properties >
789+ <surefire .unsafe-memory-access.argLine>--sun-misc-unsafe-memory-access=allow</surefire .unsafe-memory-access.argLine>
790+ </properties >
791+ </profile >
792+
781793 <profile >
782794 <!-- C data interface depends on building a native library -->
783795 <id >arrow-c-data</id >
You can’t perform that action at this time.
0 commit comments