lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishabh Patel (JIRA)" <>
Subject [jira] [Created] (LUCENE-6608) Potential resource leak in
Date Thu, 25 Jun 2015 19:18:04 GMT
Rishabh Patel created LUCENE-6608:

             Summary: Potential resource leak in
                 Key: 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message