You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Rishabh Patel (JIRA)" <ji...@apache.org> on 2015/06/25 21:18:04 UTC

[jira] [Created] (LUCENE-6608) Potential resource leak in BigramDictionary.java

Rishabh Patel created LUCENE-6608:
-------------------------------------

             Summary: 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


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