From 4f50c30537820771a598eabbd0bff9f8cc7edd21 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Thu, 18 May 2023 23:17:01 +0800 Subject: [PATCH] HBASE-27870 Eliminate the 'WARNING: package jdk.internal.util.random not in java.base' when running UTs with jdk11 (#5242) Signed-off-by: Tianhang Tang (cherry picked from commit 71d7996047001d0be56915bbabed1fb0e552192b) --- pom.xml | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 2cd357d177f..b92c85acacf 100644 --- a/pom.xml +++ b/pom.xml @@ -707,6 +707,18 @@ "-Djava.library.path=${hadoop.library.path};${java.library.path}" -Dorg.apache.hbase.thirdparty.io.netty.leakDetection.level=advanced -Dio.opentelemetry.context.enableStrictContext=true + -Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true + --add-modules jdk.unsupported + --add-opens java.base/java.nio=ALL-UNNAMED + --add-opens java.base/sun.nio.ch=ALL-UNNAMED + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/jdk.internal.ref=ALL-UNNAMED + --add-opens java.base/java.lang.reflect=ALL-UNNAMED + --add-opens java.base/java.util=ALL-UNNAMED + --add-opens java.base/java.util.concurrent=ALL-UNNAMED + --add-exports java.base/jdk.internal.misc=ALL-UNNAMED + --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED + --add-opens java.base/jdk.internal.util.random=ALL-UNNAMED ${hbase-surefire.argLine} @{jacocoArgLine} 1.5.1 @@ -2886,18 +2898,7 @@ ${releaseTarget} - -Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true - --add-modules jdk.unsupported - --add-opens java.base/java.nio=ALL-UNNAMED - --add-opens java.base/sun.nio.ch=ALL-UNNAMED - --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens java.base/jdk.internal.ref=ALL-UNNAMED - --add-opens java.base/java.lang.reflect=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED - --add-opens java.base/java.util.concurrent=ALL-UNNAMED - --add-opens java.base/jdk.internal.util.random=ALL-UNNAMED - --add-exports java.base/jdk.internal.misc=ALL-UNNAMED - --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED + ${hbase-surefire.jdk11.flags} ${hbase-surefire.argLine} @{jacocoArgLine} jenkins.patch