Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 30237 invoked from network); 18 Jan 2009 13:25:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2009 13:25:27 -0000 Received: (qmail 22093 invoked by uid 500); 18 Jan 2009 13:25:26 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 22026 invoked by uid 500); 18 Jan 2009 13:25:25 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 22011 invoked by uid 99); 18 Jan 2009 13:25:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jan 2009 05:25:25 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jochen.wiedmann@gmail.com designates 72.14.220.153 as permitted sender) Received: from [72.14.220.153] (HELO fg-out-1718.google.com) (72.14.220.153) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jan 2009 13:25:17 +0000 Received: by fg-out-1718.google.com with SMTP id 13so1087171fge.24 for ; Sun, 18 Jan 2009 05:24:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BfYDu/PtT9F+yXuexhX/9/YdXH4kJPKqo0mbiM2IhME=; b=rd6+XL9j2TwDztUpJwf3X/3fEUp9n/9agNFK4Ooh4w7YaxmzXmLUoTmOHVwFUhy1Bg 18Sv1yaGd6+KWe+GkGMkATM+tHMKH9ncD+CeaWSjjcPFM5x/NmIeiPTh0+1ojIHll5S7 umlIx0+WvI32dFTzGNBqy+KCIqOlNsQcG9dzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=k6fX8uo1BKzbavR6SubYweIydi3La0pfr3ayyrs9l66PJXchiL28kbrVZp1GwMuSBG blenniJ+VXHvArJ4BYoKscWgBkIPZmWpLgRoWuw6W3Ecx8O/aWft4KJFTRJuDxDF6D4e 7+eASuBI4jaIDUcw2OXY/EbpmLZn5mrpmQA0k= Received: by 10.86.84.5 with SMTP id h5mr103803fgb.12.1232285095917; Sun, 18 Jan 2009 05:24:55 -0800 (PST) Received: by 10.86.94.20 with HTTP; Sun, 18 Jan 2009 05:24:55 -0800 (PST) Message-ID: Date: Sun, 18 Jan 2009 14:24:55 +0100 From: "Jochen Wiedmann" To: "Commons Developers List" Subject: Re: [fileupload] svn commit: r735370 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jan 18, 2009 at 4:19 AM, Rahul Akolkar wrote: >> + } finally { >> + if (!successful) { >> + for (Iterator iterator = items.iterator(); iterator.hasNext();) { >> + FileItem fileItem = (FileItem) iterator.next(); >> + try { >> + fileItem.delete(); >> + } catch (Throwable e) { >> + // ignore it >> + } > > > Catch the bits that makes sense to ignore here? Don't know, whether I understand your question right, Rahul. But if the question is, whether ignoring the exception in the finally clause is fine: Yes, it is! If the flag "successful" isn't set, then another exception was thrown previously, and we want to see that exception, not a follow-up. Jochen -- I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone. -- (Bjarne Stroustrup, http://www.research.att.com/~bs/bs_faq.html#really-say-that My guess: Nokia E50) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org