Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8373

File.filterLine leaves hanging Reader

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      Looks like the default method for new File('.').filterLine creates a newReader which is never closed, nor is it accessible for the user to close it themselves.

      https://github.com/apache/groovy/blob/2d9c467ade68da0e3e73e64c4db7f29d742162f9/src/main/org/codehaus/groovy/runtime/ResourceGroovyMethods.java#L2386

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tim_yates Tim Yates
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: