You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ko...@apache.org on 2006/02/06 16:46:25 UTC

svn commit: r375300 - /jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/StackRecorder.java

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