Hello!
I am using BCEL to instrument class code in a thread migration system. It
needs to insert GOTO instructions but I cannot get the target
InstructionHandler. I have tried more ways. For example:

InstructionList il = mg.getInstructionList(); // mg is a MethodGen
initialized with a method of the class
InstructionHandle ih = il.getStart(); // returns null; WHY?

Also:

InstructionHandle ih = il.findHandle(index); // index surely exists within
InstructionList, still returns null; WHY?

Maybe I have a wrong approach? What is a proper way to get the handle for an
instruction that already exists in InstructionList?

Thank you very much!
-- 
View this message in context: 
http://www.nabble.com/InstructionList.getStart%28%29-returns-null-tp17605315p17605315.html
Sent from the BCEL - User mailing list archive at Nabble.com.


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

Reply via email to