Sure, using the JPDA. Actually, Daniel Savarese wrote an article describing your exact case:

http://www.ftponline.com/javapro/2002_09/magazine/columns/proshop/

Bob

On Wednesday, August 27, 2003, at 01:44 PM, Naveen Kuppili wrote:

All,

Is there a way to redefine a class on the fly? I know that we could have
custom classloaders that could potentially modify byte code on the fly
while loading a class. But, would it be possible to dynamically unload
the class and redefine it? I want to have a way of "rolling back" my
changes that have been done to a class.


Any thoughts on this?

Thanks,
Naveen
Flexetech Solutions, Inc.
http://www.flexetech.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to