Alright, so I set mode="bcel" on the javaflow attribute, and wind up with an exception. It's detailed as the third entry in the gist:
https://gist.github.com/1044901 It says "Branch target offset too large for short." In the meantime, I'm still working on trying to make a test case for the ASM builder. On Tue, Jun 28, 2011 at 4:35 PM, Torsten Curdt <[email protected]> wrote: > It's a bit hidden... > > > https://svn.apache.org/repos/asf/commons/sandbox/javaflow/trunk/src/main/java/org/apache/commons/javaflow/ant/AntRewriteTask.java > > ...shows there is a "mode" attribute. > > cheers, > Torsten > > On Tue, Jun 28, 2011 at 20:09, Jeff Hair <[email protected]> wrote: > > Thanks for the references. One more thing: how do I enable the BCEL > bytecode > > enhancing? > > > > On Mon, Jun 27, 2011 at 11:44 AM, Torsten Curdt <[email protected]> > wrote: > > > >> Hey Jeff, > >> > >> > I will try your suggestions. In the meantime, can you point me to how > I > >> > would go about converting this problem to a test case? > >> > >> did you already have a look at the current tests? > >> > >> > >> > https://svn.apache.org/repos/asf/commons/sandbox/javaflow/trunk/src/test/java/org/apache/commons/javaflow/rewrite/ > >> > >> > I'm not even sure if > >> > I can reproduce it yet. I haven't been able to identify what > specifically > >> > caused the problem. My original coroutine prototype was using a > <String, > >> > Continuation> map where the "yield statement" (a method call) would > just > >> > yield to a continuation identified by a string name. I copied that > logic > >> > verbatim, basically just changing the types. Of course, there's a lot > >> more > >> > going on in the interpreter, so it's probably something to do with > that. > >> > >> I would start with a simple continuation testcase that works and then > >> modify towards your use case until it breaks. > >> > >> cheers, > >> Torsten > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > > > -- > http://www.yourdailygeekery.com > http://www.torstencurdt.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
