[ 
https://issues.apache.org/jira/browse/FLINK-6866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062894#comment-16062894
 ] 

Stephan Ewen commented on FLINK-6866:
-------------------------------------

Not sure how easily this is solvable. After all, the objects need to be 
serializable in the end. The closure cleaner cannot magically make 
non-serializable elements serializable.

Can you share the code that causes this problem?

Can you avoid having an instantiated Wrapper by the time the class is 
serialized?

> ClosureCleaner.clean fails for scala's JavaConverters wrapper classes
> ---------------------------------------------------------------------
>
>                 Key: FLINK-6866
>                 URL: https://issues.apache.org/jira/browse/FLINK-6866
>             Project: Flink
>          Issue Type: Bug
>          Components: DataStream API, Scala API
>    Affects Versions: 1.2.0, 1.3.0
>         Environment: Scala 2.10.6, Scala 2.11.11
> Does not appear using Scala 2.12
>            Reporter: SmedbergM
>
> MWE: https://github.com/SmedbergM/ClosureCleanerBug
> MWE console output: 
> https://gist.github.com/SmedbergM/ce969e6e8540da5b59c7dd921a496dc5



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to