7 Replies Latest reply on Jan 18, 2005 3:28 AM by carsten r

    Adding Methodes

    carsten r Newbie

      Hi everyone!

      I have a question about bytecode manipulation with Javassist.
      Is it possible to modify more than one class a time and
      compile them together?!?
      I think of doing sth like this:

      class A{
       void dosth(){
       ...
       B.dosthmore();
       ....
       }
      }
      class B{
       void dosthmore(){...}
      }
      

      And i want to change it in sth like this ..
      class A{
       void dosth$impl(){
       ...
       B.dosthmore$impl();
       ...
       }
       void dosth(){
       ...
       dosth$impl();
       ....
       }
      }
      class B{
       void dosthmore$impl(){...}
       void dosthmore(){...}
      }
      


      As i saw in the tutorial it is easy to modify one class a time,
      is this also true for more than 1?!? Or do i have to
      split this up into 2 "Loops" ?

      Sincerely
      Sirrurg