[jira] [Created] (FLINK-12049) ClassLoaderUtilsTest fails on Java 9

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-12049) ClassLoaderUtilsTest fails on Java 9

Shang Yuanchun (Jira)
Chesnay Schepler created FLINK-12049:
----------------------------------------

             Summary: ClassLoaderUtilsTest fails on Java 9
                 Key: FLINK-12049
                 URL: https://issues.apache.org/jira/browse/FLINK-12049
             Project: Flink
          Issue Type: Sub-task
          Components: Tests
    Affects Versions: 1.9.0
            Reporter: Chesnay Schepler


{code}
public void testWithAppClassLoader() {
        String result = ClassLoaderUtil.getUserCodeClassLoaderInfo(ClassLoader.getSystemClassLoader());
        assertTrue(result.toLowerCase().contains("system classloader"));
{code}

{{ClassLoader.getSystemClassLoader()}} no longer returns an URLClassLoader on Java 9, but {{ClassLoaderUtil.getUserCodeClassLoaderInfo}} relies on this to extract information about the ClassLoader.





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)