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)