[
https://issues.apache.org/jira/browse/FLINK-4096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15369325#comment-15369325
]
ASF GitHub Bot commented on FLINK-4096:
---------------------------------------
Github user mushketyk commented on the issue:
https://github.com/apache/flink/pull/2172
Since jos is now used in try-with-resource, I assume it will be called in
any case:
https://github.com/apache/flink/pull/2172/files#diff-966966a476efb23e920314f9bf266539R192
Am I missing something?
> Nested FileOutputStream is not closed in JarFileCreator
> -------------------------------------------------------
>
> Key: FLINK-4096
> URL: https://issues.apache.org/jira/browse/FLINK-4096
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ivan Mushketyk
> Priority: Minor
>
> {code}
> final JarOutputStream jos = new JarOutputStream(new
> FileOutputStream(this.outputFile), new Manifest());
> {code}
> When jos is closed, the FileOutputStream is not automatically closed.
> FileOutputStream should be closed explicitly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)