Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify a method

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Fred Abbot
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx for removing my post very nice of you
am i wrong or do you understand what i wrote and therfore took it off
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic