You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2017/03/20 14:14:41 UTC

[jira] [Updated] (FLINK-6080) Unclosed ObjectOutputStream in NFA#serialize()

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

Robert Metzger updated FLINK-6080:
----------------------------------
    Component/s: CEP

> Unclosed ObjectOutputStream in NFA#serialize()
> ----------------------------------------------
>
>                 Key: FLINK-6080
>                 URL: https://issues.apache.org/jira/browse/FLINK-6080
>             Project: Flink
>          Issue Type: Bug
>          Components: CEP
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>     public void serialize(NFA<T> record, DataOutputView target) throws IOException {
>       ObjectOutputStream oos = new ObjectOutputStream(new DataOutputViewStream(target));
>       oos.writeObject(record);
>       oos.flush();
>     }
> {code}
> ObjectOutputStream should be closed before returning from method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)