0 Replies Latest reply on Dec 19, 2007 9:58 PM by Paul Keeble

    Find and replace synchronized blocks with JA 3.4?

    Paul Keeble Newbie

      I have been using the ExprEditor class along with #instrument to enhance byte code, but I am having a little trouble with detecting synchronised blocks. What I want to do is put a method call in place of the beginning and replace the end of the block with a different method call and remove the synchronisation entirely. Sounds a little crazy I know, but its all for a good purpose.

      Unfortunately I can't seem to work out from the tutorials how to go about changing the synchronised blocks and ExprEditor has no method for finding them. Any points on how to detected and replace would be much appreciated.

      Thanks