[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is units list in a method always PatchingChain?



CHEN FU <chenfu@paul.rutgers.edu> wrote:
> I just want to make sure that the statement
> list in any method is definitely implemented as PatchingChain
> so that I won't need to worry about moving the
> jump targets when I try to insert a code infront of 
> some statement?

Yes, pretty much!  Are you using Body.getUnits()?  You'll notice that
it explicitly returns a PatchingChain.

However, be careful if you are inserting branch statements.

Cheers,
Navin.