You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/02/25 22:55:21 UTC
[jira] [Created] (HADOOP-10368) InputStream is not closed in
VersionInfo ctor
Ted Yu created HADOOP-10368:
-------------------------------
Summary: InputStream is not closed in VersionInfo ctor
Key: HADOOP-10368
URL: https://issues.apache.org/jira/browse/HADOOP-10368
Project: Hadoop Common
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{code}
InputStream is = Thread.currentThread().getContextClassLoader()
.getResourceAsStream(versionInfoFile);
if (is == null) {
throw new IOException("Resource not found");
}
info.load(is);
{code}
is should be closed at the end of the method.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)