flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chesnay Schepler (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLINK-12049) ClassLoaderUtilsTest fails on Java 9
Date Thu, 28 Mar 2019 10:01:00 GMT

     [ https://issues.apache.org/jira/browse/FLINK-12049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chesnay Schepler updated FLINK-12049:
-------------------------------------
    Description: 
{code}
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)
{code}

{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.



  was:
{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.




> 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
>            Priority: Major
>
> {code}
> 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)
> {code}
> {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)

Mime
View raw message