Return-Path: Delivered-To: apmail-incubator-aries-dev-archive@minotaur.apache.org Received: (qmail 2118 invoked from network); 1 Apr 2010 10:57:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Apr 2010 10:57:58 -0000 Received: (qmail 15848 invoked by uid 500); 1 Apr 2010 10:57:58 -0000 Delivered-To: apmail-incubator-aries-dev-archive@incubator.apache.org Received: (qmail 15815 invoked by uid 500); 1 Apr 2010 10:57:55 -0000 Mailing-List: contact aries-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: aries-dev@incubator.apache.org Delivered-To: mailing list aries-dev@incubator.apache.org Received: (qmail 15807 invoked by uid 99); 1 Apr 2010 10:57:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 10:57:54 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vmahrwald@googlemail.com designates 209.85.218.213 as permitted sender) Received: from [209.85.218.213] (HELO mail-bw0-f213.google.com) (209.85.218.213) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Apr 2010 10:57:48 +0000 Received: by bwz5 with SMTP id 5so808851bwz.20 for ; Thu, 01 Apr 2010 03:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=krvmowAl+Lu1MZznn3pDCqdd1gLeucBia37B/M+pwAs=; b=tNsBQEC5WPe2LYreMujDGb9nuTaoGmaITKiX1ko6HFuXrML5E3p2iOEmi73YbZ4C2x 8ItFvrSenG4ETXKAR8ZzUNmFmHqC8I/cgYXa3r+BlXfETHSuhCOJkGQ18yvDcnR22BGW H7zIrnVLheSCNaeUKtqLhieLNIxrdtjlXIVUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=ri+9ZTs1toMHSXTJXqJkVXSqM5yFU8K0L55hgmtvw/0nD5u3bWRusdW9/aFvu7ZMHD GrySSQUjCs9eTKk58ZOVmGgu6EIZxDteSNOobLEkCAN7NIaQL4hNpCtKv1MtuA0OIs9u z/FJpyj+JSrF0zlqJBWAQP8FRWOza2bF0Arw4= Received: by 10.204.81.134 with SMTP id x6mr1182031bkk.32.1270119446462; Thu, 01 Apr 2010 03:57:26 -0700 (PDT) Received: from dhcp-9-20-238-161.hursley.ibm.com (gbibp9ph1--blueice4n1.emea.ibm.com [195.212.29.91]) by mx.google.com with ESMTPS id l1sm66246346bkl.2.2010.04.01.03.57.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Apr 2010 03:57:25 -0700 (PDT) Message-Id: From: Valentin Mahrwald To: aries-dev@incubator.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: svn commit: r928178 - in /incubator/aries/trunk: blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/ blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/proxy/ blueprint/blueprint-testbundlea/src/main/java/org/apache/ Date: Thu, 1 Apr 2010 11:57:24 +0100 References: <8240AF16-496B-4027-8DDB-A68272122661@gmail.com> <9BFE3B59-5BE7-4EC0-8AF3-B9253C0E1DCB@york.ac.uk> X-Mailer: Apple Mail (2.936) As discussed yesterday this is a very valid point, the new code is only equivalent to the old one if the exception passed into to the interceptor could actually have been thrown by the intercepted method. With the current design of Collaborator though, it could have been a checked Exception that was thrown by another interceptor. This points to a lack in the Blueprint Collaborator implementation. So I will raise a bug against that to make sure checked Exception thrown by interceptors are appropriately converted into say UndeclaredThrowableExceptions before being passed to further interceptors. Valentin On 31 Mar 2010, at 14:17, Lin Sun wrote: > Right the runtime exception was already handled before and the new > code covers it too. :) > > I think it is reasonable to say that every exception that is not an > Error or a RuntimeException is a declared exception, but I am not sure > if it is a declared application exception. It may or may not, for > example it could be an exception like SystemException from the > transaction manager. IIUC, the previous code would not consider > SystemException an application exception and set the rollback only on > the transaction, while the new code won't. > Lin > > On Wed, Mar 31, 2010 at 2:06 AM, Valentin Mahrwald > wrote: >> >> On 31 Mar 2010, at 06:58, Valentin Mahrwald wrote: >> >>> Yes, that is intended :) >>> >>> The new logic does the same as the old only a bit more efficient >>> in that >>> every exception that is not an Error or a RuntimeException is a >>> declared >>> exception. >>> >>> There is one subtle difference though. A RuntimeException that is >>> declared >>> in the throws clause of a method is still treated as a >>> RuntimeException and >>> not a declared Exception. This is similar to what EJB does and I >>> believe >>> correct for our purposes (Joe Bohn also raised this as a bug >>> previously, >>> ARIES 258). >> >> Doh, shouldn't answer emails before breakfast. The RuntimeException >> case was >> already handled before, so the new code should in fact do exactly >> the same >> as the old code (except more efficiently). >> >>> Regards, >>> >>> Valentin >>> >>> On 30 Mar 2010, at 21:04, Lin Sun wrote: >>> >>>> >>>> I noticed that this removed the previous checking of whether the >>>> ex is >>>> one of the method m declared exceptions. Method m is now not >>>> used at >>>> all in this postCallWithException. Is that intended? >>> >> >>