[ https://issues.apache.org/jira/browse/FLINK-11155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated FLINK-11155: ----------------------------------- Labels: pull-request-available (was: ) > HadoopFreeFsFactoryTest fails with ClassCastException > ----------------------------------------------------- > > Key: FLINK-11155 > URL: https://issues.apache.org/jira/browse/FLINK-11155 > Project: Flink > Issue Type: Sub-task > Components: FileSystems, Tests > Affects Versions: 1.8.0 > Reporter: Gary Yao > Assignee: xueyu > Priority: Major > Labels: pull-request-available > > {{HadoopFreeFsFactoryTest#testHadoopFactoryInstantiationWithoutHadoop}} fails > with a ClassCastException because we try to cast the result of > {{getClassLoader}} to {{URLClassLoader}} (also see > https://stackoverflow.com/questions/46694600/java-9-compatability-issue-with-classloader-getsystemclassloader) > {noformat} > java.lang.ClassCastException: > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to > java.base/java.net.URLClassLoader > at > org.apache.flink.runtime.fs.hdfs.HadoopFreeFsFactoryTest.testHadoopFactoryInstantiationWithoutHadoop(HadoopFreeFsFactoryTest.java:46) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:564) > {noformat} > One should also look for other instances where we cast to {{URLClassLoader}}. -- This message was sent by Atlassian JIRA (v7.6.3#76005)