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 <zhangduo@apache.org>
This commit is contained in:
parent
d5ed8f59e5
commit
e10c15d030
2
pom.xml
2
pom.xml
|
@ -3139,7 +3139,6 @@
|
||||||
<maven.compiler.release>${releaseTarget}</maven.compiler.release>
|
<maven.compiler.release>${releaseTarget}</maven.compiler.release>
|
||||||
<!-- TODO: replicate logic for windows support -->
|
<!-- TODO: replicate logic for windows support -->
|
||||||
<argLine>-Dio.netty.tryReflectionSetAccessible=true
|
<argLine>-Dio.netty.tryReflectionSetAccessible=true
|
||||||
--illegal-access=permit
|
|
||||||
--add-modules jdk.unsupported
|
--add-modules jdk.unsupported
|
||||||
--add-opens java.base/java.nio=ALL-UNNAMED
|
--add-opens java.base/java.nio=ALL-UNNAMED
|
||||||
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
|
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
|
||||||
|
@ -3147,6 +3146,7 @@
|
||||||
--add-opens java.base/jdk.internal.ref=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.lang.reflect=ALL-UNNAMED
|
||||||
--add-exports java.base/jdk.internal.misc=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>
|
${hbase-surefire.argLine}</argLine>
|
||||||
<!--
|
<!--
|
||||||
Value to use for surefire when running jdk11.
|
Value to use for surefire when running jdk11.
|
||||||
|
|
Loading…
Reference in New Issue