XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • None
    • None
    • None

    Description

      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:

      [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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: