commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prateek Rungta (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CSV-197) CSVParser doesn't close the underlying handle after iteration
Date Fri, 23 Sep 2016 02:06:20 GMT
Prateek Rungta created CSV-197:
----------------------------------

             Summary: CSVParser doesn't close the underlying handle after iteration
                 Key: CSV-197
                 URL: https://issues.apache.org/jira/browse/CSV-197
             Project: Commons CSV
          Issue Type: Bug
          Components: Parser
            Reporter: Prateek Rungta
            Priority: Minor


The following code leaks file handles:
{code}
CSVParser parser = // setup parser
for (CSVRecord rec: parser) {
}
// leak
{code}

I'd expect the underlying iterator to close() if it's finished iterating. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message