Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5844

Close IO Streams in finally or try-with-resource statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.9
    • None
    • None

    Description

      The problem here is that if an exception is thrown during the read process the method will exit without closing the stream and hence without releasing the file system resources, it may run out of resources before it does run.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            tgttxy Tang Xinye
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: