InstructionList.getStart() returns null

bitforce <[email protected]> Mon, 2 Jun 2008 09:23:44 -0700 (PDT)
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <[email protected]>
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.