Skip to content

Commit b10fa40

Browse files
dfa1claude
andcommitted
build: suppress sun.misc.Unsafe warnings from Arrow and Protobuf
Both arrow-memory-unsafe and protobuf-java call arrayBaseOffset, which is terminally deprecated in JDK 25. Suppress via --sun-misc-unsafe-memory-access=allow in surefire (all modules) and failsafe (integration) argLine. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8d60d95 commit b10fa40

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

integration/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<argLine>
8989
--add-opens java.base/java.nio=ALL-UNNAMED
9090
--enable-native-access=ALL-UNNAMED
91+
--sun-misc-unsafe-memory-access=allow
9192
</argLine>
9293
</configuration>
9394
<executions>

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
<groupId>org.apache.maven.plugins</groupId>
9898
<artifactId>maven-surefire-plugin</artifactId>
9999
<version>3.5.2</version>
100+
<configuration>
101+
<argLine>--sun-misc-unsafe-memory-access=allow</argLine>
102+
</configuration>
100103
</plugin>
101104
<plugin>
102105
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)