This content has been marked as final.
Show 2 replies
-
1. Re: Is CodeIterator.insertGap(int length) is supposed to ins
ivangarcia44 Feb 23, 2005 4:08 AM (in response to ivangarcia44)I find out what was not allowing insertGap to work well.
I am instrumenting a method using CodeIterator. With the same iterator that I use to insert gaps into the method I also use writeByte to modify bytes. When I do this the gaps are inserted at the end.
I used two separate iterators to solve the problem. The first run inserts gaps and the second run modifies the bytecode. It would be better if I could insert gaps and modify the bytecode with the same iterator. -
2. Re: Is CodeIterator.insertGap(int length) is supposed to ins
chiba Feb 23, 2005 9:50 AM (in response to ivangarcia44)Well, if your post is really true, that behavior is a bug.
Can you show me a test case (simple one is fine)?
Thank you,