Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F719178FD for ; Sat, 20 Jun 2015 09:50:01 +0000 (UTC) Received: (qmail 56467 invoked by uid 500); 20 Jun 2015 09:50:00 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 56412 invoked by uid 500); 20 Jun 2015 09:50:00 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 56401 invoked by uid 99); 20 Jun 2015 09:50:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2015 09:50:00 +0000 Date: Sat, 20 Jun 2015 09:50:00 +0000 (UTC) From: "Tang Xinye (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MNG-5844) Close IO Streams in finally or try-with-resource statement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MNG-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tang Xinye updated MNG-5844: ---------------------------- Summary: Close IO Streams in finally or try-with-resource statement (was: Close IO Streams in finally block) > Close IO Streams in finally or try-with-resource statement > ---------------------------------------------------------- > > Key: MNG-5844 > URL: https://issues.apache.org/jira/browse/MNG-5844 > Project: Maven > Issue Type: Improvement > Reporter: Tang Xinye > Priority: Critical > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)