JBoss Community

Javassist dealing across different project packages

created by Melissa Dale in Javassist - View the full discussion

Concept question: Is there a way to write a javassist program in a package other than the src folder that can modifiy other classes (either in the src folder or sub folders of the src folder).  I have messed around with "cp.addPath("/usr/local/javalib");" and I cannot get that to work. I do not know if that is because I am not using it properly, or if that isn't even an appropriate approach to modifying java files in other packages.

 

Any input would be greatly appreciated. Thanks!

Reply to this message by going to Community

Start a new discussion in Javassist at Community