You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ufuk Celebi (JIRA)" <ji...@apache.org> on 2015/09/16 10:20:45 UTC

[jira] [Commented] (FLINK-2595) Unclosed JarFile may leak resource in ClassLoaderUtilsTest

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

Ufuk Celebi commented on FLINK-2595:
------------------------------------

Hey Ted, would you like to provide a fix for this?

> 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 exception happens, the JarFile instance is not closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)