[ https://issues.apache.org/jira/browse/HBASE-26046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wei-Chiu Chuang updated HBASE-26046: ------------------------------------ Summary: [JDK17] Add a JDK17 profile (was: Add a JDK17 profile) > [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.3.4#803005)