You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Gary Yao (JIRA)" <ji...@apache.org> on 2018/12/10 14:43:00 UTC
[jira] [Created] (FLINK-11122) SafetyNetCloseableRegistryTest fails
with ClassCastException
Gary Yao created FLINK-11122:
--------------------------------
Summary: SafetyNetCloseableRegistryTest fails with ClassCastException
Key: FLINK-11122
URL: https://issues.apache.org/jira/browse/FLINK-11122
Project: Flink
Issue Type: Sub-task
Components: Tests
Reporter: Gary Yao
Fix For: 1.8.0
When compiling and running {{SafetyNetCloseableRegistryTest}} with Java 9, some tests fail with a {{ClassCastException}}
{noformat}
java.lang.AssertionError: java.lang.ClassCastException: org.apache.flink.core.fs.local.LocalDataOutputStream cannot be cast to org.apache.flink.core.fs.WrappingProxyCloseable
at org.apache.flink.core.fs.SafetyNetCloseableRegistry$PhantomDelegatingCloseableRef.<init>(SafetyNetCloseableRegistry.java:156)
at org.apache.flink.core.fs.SafetyNetCloseableRegistry.doRegister(SafetyNetCloseableRegistry.java:99)
at org.apache.flink.core.fs.SafetyNetCloseableRegistry.doRegister(SafetyNetCloseableRegistry.java:50)
at org.apache.flink.util.AbstractCloseableRegistry.registerCloseable(AbstractCloseableRegistry.java:79)
at org.apache.flink.core.fs.ClosingFSDataOutputStream.wrapSafe(ClosingFSDataOutputStream.java:101)
at org.apache.flink.core.fs.SafetyNetWrapperFileSystem.create(SafetyNetWrapperFileSystem.java:127)
at org.apache.flink.core.fs.SafetyNetCloseableRegistryTest$3.go(SafetyNetCloseableRegistryTest.java:120)
at org.apache.flink.core.testutils.CheckedThread.run(CheckedThread.java:74)
{noformat}
This is due to the problematic signature in {{WrappingProxyUtil#stripProxy(T), which expects a generic type {{T}} and also returns {{T}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)