I have a issue with JCodeModel (SUN). My program is running every day, and I want to add some function to classes which was created before the current running.
JcodeModel support this? If not, there is any option to save the JCodemodel Object in external file, load the previous JcodeModel, and then add the new functions?
Thanks.
You could save the instance to file using ObjectOutputStream and then read and instatiate it with ObjectInputStream. As long as you control the system and can ensure that the version does not change overnight, this should be safe (though unusual).
This tutorial demonstrates how to use it: