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

zhangduo pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.5 by this push:
     new 0ab933f520b HBASE-27179 Issues building with OpenJDK 17 (#4594)
0ab933f520b is described below

commit 0ab933f520bbe306950c47c05ce6da2ca4362af0
Author: Ramón García Fernández <[email protected]>
AuthorDate: Mon Jul 25 13:21:21 2022 +0200

    HBASE-27179 Issues building with OpenJDK 17 (#4594)
    
    Fix test case failures in org.apache.hadoop.hbase.http.log.TestLogLevel 
under Openjdk 17 because of a missing export of 
java.security.jgss/sun.security.krb5.
    Removed option --illegal-access=permit ignored since Openjdk 17.
    
    Signed-off-by: Duo Zhang <[email protected]>
    (cherry picked from commit e10c15d0306e678ace8748680527e6eecbf424e5)
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 562ba6cc102..ca6ab5e9885 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2828,7 +2828,6 @@
         <maven.compiler.release>${releaseTarget}</maven.compiler.release>
         <!-- TODO: replicate logic for windows support -->
         <argLine>-Dio.netty.tryReflectionSetAccessible=true
-          --illegal-access=permit
           --add-modules jdk.unsupported
           --add-opens java.base/java.nio=ALL-UNNAMED
           --add-opens java.base/sun.nio.ch=ALL-UNNAMED
@@ -2836,6 +2835,7 @@
           --add-opens java.base/jdk.internal.ref=ALL-UNNAMED
           --add-opens java.base/java.lang.reflect=ALL-UNNAMED
           --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
+          --add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
           ${hbase-surefire.argLine}</argLine>
         <!--
           Value to use for surefire when running jdk11.

Reply via email to