Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-197

CSVParser doesn't close the underlying handle after iteration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • Patch Needed, Discussion, 1.x
    • Parser
    • None

    Description

      The following code leaks file handles:

      CSVParser parser = // setup parser
      for (CSVRecord rec: parser) {
      }
      // leak
      

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            prateekrungta Prateek Rungta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: