XMLWordPrintableJSON

Details

    Description

      When built on Java 8 and unit tests are run on Java 11, TestClassFinder fails. A sample stacktrace:

      java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
      	at org.apache.hadoop.hbase.TestClassFinder.packageAndLoadJar(TestClassFinder.java:418)
      	at org.apache.hadoop.hbase.TestClassFinder.createAndLoadJar(TestClassFinder.java:193)
      	at org.apache.hadoop.hbase.TestClassFinder.testClassFinderCanFindClassesInDirs(TestClassFinder.java:233)

      Attachments

        1. hbase-22458.master.002.patch
          11 kB
          Sakthi
        2. hbase-22458.master.001.patch
          12 kB
          Sakthi

        Activity

          People

            sakthi Sakthi
            sakthi Sakthi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: