[
https://issues.apache.org/jira/browse/FLINK-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14790675#comment-14790675
]
ASF GitHub Bot commented on FLINK-2595:
---------------------------------------
GitHub user tedyu opened a pull request:
https://github.com/apache/flink/pull/1137
FLINK-2595 Unclosed JarFile may leak resource in ClassLoaderUtilsTest
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tedyu/flink master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1137.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1137
----
commit 705fa05121a6a2732e2604148653705a419f4d60
Author: Ted <[email protected]>
Date: 2015-09-16T16:29:54Z
FLINK-2595 Unclosed JarFile may leak resource in ClassLoaderUtilsTest
----
> Unclosed JarFile may leak resource in ClassLoaderUtilsTest
> ----------------------------------------------------------
>
> Key: FLINK-2595
> URL: https://issues.apache.org/jira/browse/FLINK-2595
> Project: Flink
> Issue Type: Test
> Reporter: Ted Yu
> Priority: Minor
>
> Here is related code:
> {code}
> try {
> new JarFile(validJar.getAbsolutePath());
> }
> catch (Exception e) {
> e.printStackTrace();
> fail("test setup broken: cannot create a
> valid jar file");
> }
> {code}
> When no exception happens, the JarFile instance is not closed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)