From e8840dd253b23dbcfb754208eb291ca80341fab5 Mon Sep 17 00:00:00 2001 From: James Duong Date: Thu, 30 Nov 2023 15:06:57 -0800 Subject: [PATCH] Enable reflection during arrow-memory-core tests The tests themselves (specifically testEnableHistoricalLog) use reflection on java.lang.reflect so surefire needs to enable this permission. --- java/memory/memory-core/pom.xml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/java/memory/memory-core/pom.xml b/java/memory/memory-core/pom.xml index 8f28699045383..66be9c2ff4e36 100644 --- a/java/memory/memory-core/pom.xml +++ b/java/memory/memory-core/pom.xml @@ -42,7 +42,6 @@ org.apache.maven.plugins maven-surefire-plugin - @@ -54,6 +53,30 @@ + + error-prone-jdk11+ + + [11,] + + !m2e.version + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + --add-opens=java.base/java.lang.reflect=org.apache.arrow.memory.core --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED + + + **/TestOpens.java + + + + + + opens-tests