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&...]