1 Reply Latest reply: Dec 15, 2012 10:42 AM by Nils Andreas Svee RSS

Can I delete the modifier of a method with Javassist?

Young Zoung Newbie

Hello, everyone.

 

I have a class file.

 

public class ClsSync {

     

     public synchronized void biat(){

          

     }

 

}

 

I want to change it to

 

public  void biat(){   // delete the synchronized keyword

          

}

 

Can I implement it using Javassist?

 

Any suggestions are welcome!

 

Thanks