How to replace a complete instruction in J2ME Bytecode

"Klaus Teller" <[email protected]> Tue, 10 Feb 2009 01:58:02 +0100
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <[email protected]>
Hi Folks,

I have a J2ME Library that contains the following instruction:

invokestatic javax/microedition/io/Connector/open(Ljava/lang/String;IZ)Ljavax/microedition/io/Connection;


I would like to replace it with:

invokestatic mypackage/AlphaConnector/open(Ljava/lang/String;IZ)Ljavax/microedition/io/Connection;

What do i need to do?

I couldn't find a way to search instruction based on the operand (that is the second part of the instruction). I tried IntructionFinder; but it couldn't help me. 

I would very much appreciate any input.

Thanks,
Klaus.

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01