0 Replies Latest reply on May 9, 2008 7:47 PM by bseshadri

    Matching assert statements

    bseshadri

      Hi,

      I'm new to javassist. I'm looking to instrument class files upon matching a particular function call and assert statements. I'm having difficulty in trying to match assert statements. I'd appreciate any help in this regard.

      for example,
      I need to replace

      assert (t != NULL)

      with
      foo ();
      assert (t!=NULL)
      bar();


      Thanks,
      Bharathi