1   package org.apache.commons.javaflow.bytecode.transformation.rewrite;
2   
3   import org.apache.commons.javaflow.Continuation;
4   
5   public final class SimpleTryCatch implements Runnable {
6   
7   	public boolean a = false;
8   	public boolean b = false;
9   	public boolean c = false;
10  	public boolean d = false;
11  	public boolean e = false;
12  	public boolean f = false;
13  
14  	private final boolean throwException;
15  	
16  	public SimpleTryCatch(final boolean pThrowException) {
17  		throwException = pThrowException;
18  	}
19  	
20  	public void run() {
21      	try {
22      		a = true;
23      		Continuation.suspend();
24      		if (throwException) {
25      			throw new Exception("exception");
26      		}
27      		b = true;
28      	} catch(Exception e) {
29      		c = true;
30      		Continuation.suspend();
31      		d = true;
32      	} finally {
33      		e = true;
34      		Continuation.suspend();
35      		f = true;
36      	}    	
37      }
38  
39  }