commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohs...@apache.org
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 GMT
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


Mime
View raw message