[jboss-dev-forums] [Javassist Development] - Proposed enhancement to the Bytecode API

Stuart Douglas do-not-reply at jboss.com
Sun Dec 12 17:16:26 EST 2010


Stuart Douglas [http://community.jboss.org/people/swd847] created the discussion

"Proposed enhancement to the Bytecode API"

To view the discussion, visit: http://community.jboss.org/message/575574#575574

--------------------------------------------------------------
I had an idea for an enhancement to the Bytecode class to make generating conditionals/goto easier. I think that it would be useful to add Bytecode.addIf* methods that return a JumpMarker that can be used to indicate where the conditional branch ends. For example:

JumpMarker marker = b.addIfne();
b.addIconst(0);
b.addIreturn();
marker.endJump();
b.addIconst(1);
b.addIreturn();


If I do up a patch for this is it likely to be accepted?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/575574#575574]

Start a new discussion in Javassist Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2063]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101212/84451354/attachment.html 


More information about the jboss-dev-forums mailing list