Gary Yao created FLINK-11155:
--------------------------------
Summary: HadoopFreeFsFactoryTest fails with ClassCastException
Key: FLINK-11155
URL:
https://issues.apache.org/jira/browse/FLINK-11155 Project: Flink
Issue Type: Sub-task
Reporter: Gary Yao
{{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}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)