[
https://issues.apache.org/jira/browse/HADOOP-10368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913448#comment-13913448
]
Hudson commented on HADOOP-10368:
---------------------------------
SUCCESS: Integrated in Hadoop-trunk-Commit #5232 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/5232/])
HADOOP-10368. InputStream is not closed in VersionInfo ctor. Contributed by
Tsuyoshi OZAWA (szetszwo:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1572220)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
*
/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
> 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
> Components: util
> Reporter: Ted Yu
> Assignee: Tsuyoshi OZAWA
> Priority: Minor
> Fix For: 2.4.0
>
> Attachments: HADOOP-10368.1.patch, HADOOP-10368.2.patch
>
>
> {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)