You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/06/25 21:37:04 UTC
[jira] [Commented] (LUCENE-6608) Potential resource leak in
BigramDictionary.java
[ https://issues.apache.org/jira/browse/LUCENE-6608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14601797#comment-14601797 ]
ASF GitHub Bot commented on LUCENE-6608:
----------------------------------------
GitHub user rmp91 opened a pull request:
https://github.com/apache/lucene-solr/pull/161
LUCENE-6608: solved potential resource leakage
https://issues.apache.org/jira/browse/LUCENE-6608
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rmp91/lucene-solr LUCENE-6608
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/161.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 #161
----
commit 2f9abc607d083a3e1dee95b3d715ffce05839415
Author: Rishabh Patel <ri...@gmail.com>
Date: 2015-06-25T19:32:59Z
solved potential resource leakage
----
> Potential resource leak in BigramDictionary.java
> ------------------------------------------------
>
> Key: LUCENE-6608
> URL: https://issues.apache.org/jira/browse/LUCENE-6608
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/analysis
> Affects Versions: Trunk
> Reporter: Rishabh Patel
> Priority: Minor
> Labels: github-import
>
> The input and output object streams are being closed in the try block. These resources will not be closed if an exception occurs in the try block
> We can use the finally block to explicitly close these resources or use the new try-with-resources construct where they are implicitly closed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org