It should be possible to just call CtClass.setModifiers().
Javassist - is it possible to change class from private to public
Question
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
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow