Description
ReflectionUtils.getClazz relies on the context classloader,
clazz = Class.forName(className, true, Thread.currentThread().getContextClassLoader());
which essentially uses the class loader from the calling thread instead of the system class loader. For classes the need to TezClassLoader which allows the classes to be added to the classpath at runtime, this can cause issues as the context class loader is from the test framework.
Attachments
Attachments
Issue Links
- is caused by
-
TEZ-3860 JDK9: ReflectionUtils may not use URLClassLoader
- Resolved