Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 52659 invoked from network); 6 Feb 2006 15:46:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Feb 2006 15:46:51 -0000 Received: (qmail 17363 invoked by uid 500); 6 Feb 2006 15:46:47 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 17290 invoked by uid 500); 6 Feb 2006 15:46:47 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 17279 invoked by uid 500); 6 Feb 2006 15:46:47 -0000 Received: (qmail 17276 invoked by uid 99); 6 Feb 2006 15:46:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 07:46:47 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 06 Feb 2006 07:46:46 -0800 Received: (qmail 52367 invoked by uid 65534); 6 Feb 2006 15:46:26 -0000 Message-ID: <20060206154626.52366.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r375300 - /jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/StackRecorder.java Date: Mon, 06 Feb 2006 15:46:25 -0000 To: commons-cvs@jakarta.apache.org From: kohsuke@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: kohsuke Date: Mon Feb 6 07:46:25 2006 New Revision: 375300 URL: http://svn.apache.org/viewcvs?rev=375300&view=rev Log: bug fix in the again() method implementationn. Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/StackRecorder.java Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/StackRecorder.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/StackRecorder.java?rev=375300&r1=375299&r2=375300&view=diff ============================================================================== --- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/StackRecorder.java (original) +++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/StackRecorder.java Mon Feb 6 07:46:25 2006 @@ -16,6 +16,7 @@ package org.apache.commons.javaflow.bytecode; import org.apache.commons.javaflow.utils.ReflectionUtils; +import org.apache.commons.javaflow.ContinuationDeath; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -91,12 +92,7 @@ } log.debug("calling runnable"); - try { - runnable.run(); - } catch (ContinuationDeath e) { - // the code inside wanted to exit. - return null; - } + runnable.run(); if (isCapturing) { if(isEmpty()) { @@ -113,6 +109,9 @@ } else { return null; // nothing more to continue } + } catch(ContinuationDeath cd) { + // this isn't an error, so no need to log + throw cd; } catch(Error e) { log.error(e.getMessage(),e); throw e; --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org