This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch update_3.1.X
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git


The following commit(s) were added to refs/heads/update_3.1.X by this push:
     new 8fbbd723 Update update_3.1.X
8fbbd723 is described below

commit 8fbbd723ed8b3b458b4d9804f6c9eac977ab51d7
Author: Lee Rhodes <[email protected]>
AuthorDate: Thu May 7 16:54:13 2026 -0700

    Update update_3.1.X
---
 datasketches-memory-java11/pom.xml                 | 41 +++++++++++++---------
 datasketches-memory-java21/pom.xml                 |  8 -----
 .../datasketches/memory/internal/UnsafeUtil.java   |  2 +-
 3 files changed, 26 insertions(+), 25 deletions(-)

diff --git a/datasketches-memory-java11/pom.xml 
b/datasketches-memory-java11/pom.xml
index c8c669a4..e5a05be0 100644
--- a/datasketches-memory-java11/pom.xml
+++ b/datasketches-memory-java11/pom.xml
@@ -45,15 +45,14 @@ under the License.
     <maven.compiler.target>${java.version}</maven.compiler.target>
     <maven.javadoc.skip>false</maven.javadoc.skip>
     <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
-    <!-- jdk.internal.misc is used to call public Unsafe & public VM -->
-    
<arg.jdk.internal.misc>--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED</arg.jdk.internal.misc>
-    <!-- sun.nio.ch.exports is used to open FileChannelImpl for DirectBuffer-->
-    
<arg.sun.nio.ch.exports>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg.sun.nio.ch.exports>
-    <!-- sun.nio.ch.opens is used to open FileChannelImpl for map0 & unmap0 
for reflection-->
-    
<arg.sun.nio.ch.opens>--add-opens=java.base/sun.nio.ch=ALL-UNNAMED</arg.sun.nio.ch.opens>
-    <!-- java.nio is used to open MappedByteBuffer load0, isloaded0, & force0 
for reflection -->
-    <arg.java.nio>--add-opens=java.base/java.nio=ALL-UNNAMED</arg.java.nio>
-
+    <!-- export.jdk.internal.misc is used to call public Unsafe & public VM -->
+    
<export.jdk.internal.misc>--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED</export.jdk.internal.misc>
+    <!-- export.sun.nio.ch is used to open FileChannelImpl for DirectBuffer-->
+    
<export.sun.nio.ch>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</export.sun.nio.ch>
+    <!-- open.java.nio is used to open MappedByteBuffer load0, isloaded0, & 
force0 for reflection -->
+    <open.java.nio>--add-opens=java.base/java.nio=ALL-UNNAMED</open.java.nio>
+    <!-- open.sun.nio.ch is used to open FileChannelImpl for map0 & unmap0 for 
reflection-->
+    
<open.sun.nio.ch>--add-opens=java.base/sun.nio.ch=ALL-UNNAMED</open.sun.nio.ch>
   </properties>
 
   <dependencies>
@@ -95,10 +94,8 @@ under the License.
         <configuration>
           <fork>true</fork> <!-- required if Maven is using a different JVM -->
           <compilerArgs>
-            <!-- <arg>${arg.jdk.internal.ref}</arg> -->
-            <arg>${arg.jdk.internal.misc}</arg>
-            <arg>${arg.sun.nio.ch.exports}</arg>
-            <arg>${arg.sun.nio.ch.opens}</arg>
+            <arg>${export.jdk.internal.misc}</arg>
+            <arg>${export.sun.nio.ch}</arg>
           </compilerArgs>
         </configuration>
       </plugin>
@@ -113,14 +110,26 @@ under the License.
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
           <argLine>
-            @{argLine} @{jvm.args} ${arg.java.nio} ${arg.sun.nio.ch.exports} 
${arg.sun.nio.ch.opens} ${arg.jdk.internal.misc}
+            @{argLine}
+            @{jvm.args}
+            ${export.jdk.internal.misc}
+            ${export.sun.nio.ch}
+            ${open.java.nio}
+            ${open.sun.nio.ch}
+            -Dorg.slf4j.simpleLogger.log.org.testng=warn
           </argLine>
           <trimStackTrace>false</trimStackTrace>
-          <useFile>false</useFile>
+          <useFile>true</useFile>
           <useManifestOnlyJar>false</useManifestOnlyJar>
-          <redirectTestOutputToFile>false</redirectTestOutputToFile>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
           
<reportsDirectory>${project.build.directory}/test-output/${maven.build.timestamp}</reportsDirectory>
           <perCoreThreadCount>false</perCoreThreadCount>
+          <properties>
+            <property>
+              <name>verbose</name>
+              <value>0</value> 
+            </property>
+          </properties>
         </configuration>
       </plugin>
 
diff --git a/datasketches-memory-java21/pom.xml 
b/datasketches-memory-java21/pom.xml
index fbfb26da..743a1b93 100644
--- a/datasketches-memory-java21/pom.xml
+++ b/datasketches-memory-java21/pom.xml
@@ -47,16 +47,8 @@ under the License.
     <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
     <!-- export.jdk.internal.misc is used to call public Unsafe & public VM -->
     
<export.jdk.internal.misc>--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED</export.jdk.internal.misc>
-    <!-- export.jdk.internal.ref is used to call public Cleaner -->
-    
<export.jdk.internal.ref>--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED</export.jdk.internal.ref>
     <!-- export.sun.nio.ch is used to open FileChannelImpl for DirectBuffer-->
     
<export.sun.nio.ch>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</export.sun.nio.ch>
-    <!-- export.jdk.internal.access is used to access SharedSecrets and 
JavaNioAccess -->
-    
<export.jdk.internal.access>--add-exports=java.base/jdk.internal.access=ALL-UNNAMED</export.jdk.internal.access>
-    <!-- open.java.nio is used to open MappedByteBuffer load0, isloaded0, & 
force0 for reflection -->
-    <open.java.nio>--add-opens=java.base/java.nio=ALL-UNNAMED</open.java.nio>
-    <!-- open.sun.nio.ch is used to open FileChannelImpl for map0 & unmap0 for 
reflection-->
-    
<open.sun.nio.ch>--add-opens=java.base/sun.nio.ch=ALL-UNNAMED</open.sun.nio.ch>
   </properties>
 
   <dependencies>
diff --git 
a/datasketches-memory-java21/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java
 
b/datasketches-memory-java21/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java
index fb2e48ee..92520074 100644
--- 
a/datasketches-memory-java21/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java
+++ 
b/datasketches-memory-java21/src/main/java/org/apache/datasketches/memory/internal/UnsafeUtil.java
@@ -118,7 +118,7 @@ public final class UnsafeUtil {
    * @param fieldName the declared field name
    * @return the field offset in bytes.
    */
-  @SuppressWarnings("deprecation")
+  @SuppressWarnings("deprecation") //for Java 21
   public static long getFieldOffset(final Class<?> c, final String fieldName) {
     try {
       return unsafe.objectFieldOffset(c.getDeclaredField(fieldName));


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to