Je suis � la recherche d'un petit renseignement : Est-il possible en JAVA de modifier lors de l'execution d'une application une m�thode sur une classe ? (et si oui, comment) Merci d'avance. (Can I modify a method of a class when the apllication is running ? Thanks...)
------------------
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
posted
0
It is definately possible to reload a new version of a class while an application is running. I regularly use servlet engines (JServ, Resin) and a test harness (JUnit) which do this. I believe they each provide a slightly modified ClassLoader to do this though. Source code for all the above systems is available, let me know if you need the URLs. I don't think you can reload individual methods.