JBoss Community

Can I delete the modifier of a method with Javassist?

created by Young Zoung in Javassist - View the full discussion

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

 

 

Reply to this message by going to Community

Start a new discussion in Javassist at Community