Hi there,

Been playing with the InstructionFinder class, and it seems that it always 
returns an extra instruction handler in the resulting array, causing an 
exception if the last instruction being looked for is a return.

I've looked in the source (downloaded today) and found the problem, there is a 
line in search(String, InstructionHandle, CodeConstraint) that reads:
int lenExpr = (endExpr - startExpr) + 1;

Not sure why that 1 is there... removing it makes the class work correctly.

Hope this helps others who've had similar issues
Mac

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to