A great idea from Stephan Michels and Torsten Curdt. They've added continuations to Java though a custom class loader. ContinuationClassLoader.java - view - 1.6
/**
* The classloader breakes the methods of the classes into pieces and
* add intercepting code to suspend the execution of the method.
*
* This code is based on the original idea of the BRAKES project.
* (http://www.cs.kuleuven.ac.be/~eddy/BRAKES/brakes.html).
*
* @author Stephan Michels
* @author Torsten Curdt
* @version CVS $Id: ContinuationClassLoader.java,v 1.6 2004/04/06 07:40:48 antonio Exp $
*/