[
https://issues.apache.org/jira/browse/HBASE-26046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17482711#comment-17482711
]
Nick Dimiduk commented on HBASE-26046:
--------------------------------------
A colleague started down this path and has reported back. At least the
following {{--add-opens}} are required.
{noformat}
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
{noformat}
> [JDK17] Add a JDK17 profile
> ---------------------------
>
> Key: HBASE-26046
> URL: https://issues.apache.org/jira/browse/HBASE-26046
> Project: HBase
> Issue Type: Sub-task
> Reporter: Wei-Chiu Chuang
> Assignee: Wei-Chiu Chuang
> Priority: Major
>
> While HBase builds fine with JDK17, tests fail because a number of Java SDK
> modules are no longer exposed to unnamed modules by default. We need to open
> them up.
> Without which, the tests fail for errors like:
> {noformat}
> [ERROR] Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.469
> s <<< FAILURE! - in org.apache.hadoop.hbase.rest.model.TestNamespacesModel
> [ERROR] org.apache.hadoop.hbase.rest.model.TestNamespacesModel.testBuildModel
> Time elapsed: 0.273 s <<< ERROR!
> java.lang.ExceptionInInitializerError
> at
> org.apache.hadoop.hbase.rest.model.TestNamespacesModel.<init>(TestNamespacesModel.java:43)
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
> protected final java.lang.Class
> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws
> java.lang.ClassFormatError accessible: module java.base does not "opens
> java.lang" to unnamed module @56ef9176
> at
> org.apache.hadoop.hbase.rest.model.TestNamespacesModel.<init>(TestNamespacesModel.java:43)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)