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

Was it helpful?

Solution

It should be possible to just call CtClass.setModifiers().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top