You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ramón García Fernández (Jira)" <ji...@apache.org> on 2022/07/05 15:02:00 UTC

[jira] [Commented] (HBASE-26046) [JDK17] Add a JDK17 profile

    [ https://issues.apache.org/jira/browse/HBASE-26046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17562708#comment-17562708 ] 

Ramón García Fernández commented on HBASE-26046:
------------------------------------------------

One does not really need a profile specific for JDK 17. All the  flags here can be used with JDK 11 , and adding a new profile adds unnecessary complexity.

> [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
>            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.10#820010)