hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-11500) InputStream is left unclosed in ApplicationClassLoader
Date Thu, 22 Jan 2015 00:34:36 GMT
Ted Yu created HADOOP-11500:
-------------------------------

             Summary: InputStream is left unclosed in ApplicationClassLoader
                 Key: HADOOP-11500
                 URL: https://issues.apache.org/jira/browse/HADOOP-11500
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Ted Yu
            Assignee: Ted Yu
            Priority: Minor


{code}
    InputStream is = null;
    try {
      is = ApplicationClassLoader.class.getClassLoader().
          getResourceAsStream(PROPERTIES_FILE);
{code}
The InputStream is not closed in the static block.



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

Mime
View raw message