Is it possible, using javassist apis, to change a class inside a jar from private to public. I already know how to unzip a jar, load ctclass, make change such as modify derived class name, then zip all to a new jar. Thanks a lot
Asked
Active
Viewed 883 times
1 Answers
0
It should be possible to just call CtClass.setModifiers().

Russell Zahniser
- 16,188
- 39
- 30
-
Hi Russell, thank you for your quick and correct answer. One more question for you if you know this, how to set a private method to public. I already got the CtClass, and I know the method name. Thank you very much. – brewphone Dec 14 '12 at 04:27