Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9.0
Description
21:21:24.547 [ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.214 s <<< FAILURE! - in org.apache.flink.runtime.util.ClassLoaderUtilsTest 21:21:24.547 [ERROR] testWithAppClassLoader(org.apache.flink.runtime.util.ClassLoaderUtilsTest) Time elapsed: 0.021 s <<< FAILURE! java.lang.AssertionError at org.apache.flink.runtime.util.ClassLoaderUtilsTest.testWithAppClassLoader(ClassLoaderUtilsTest.java:140)
public void testWithAppClassLoader() { String result = ClassLoaderUtil.getUserCodeClassLoaderInfo(ClassLoader.getSystemClassLoader()); assertTrue(result.toLowerCase().contains("system classloader"));
ClassLoader.getSystemClassLoader() no longer returns an URLClassLoader on Java 9, but ClassLoaderUtil.getUserCodeClassLoaderInfo relies on this to extract information about the ClassLoader.
Attachments
Issue Links
- links to