Hi,
I am trying to use CodeIterator.insertGap(int length) to insert a gap at a
point in the bytecode, but when I use it always inserts the gap at the end of
the bytecode, even when I use the insertGap(int pos, int length) overload.
This is the code that I am using:
int newLength = iterator.insertGap(index, 4);
The bytecode under test has a total of 29 bytes and the value of index in the
test is 11. The "nop" opcodes appear from byte 30 to byte 33. They are supposed
to appear from byte 11 to byte 14.
Is there something that I might be doing wrong?
Thanks,
Ivan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867221#3867221
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867221
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user