I think its for debugging purposes. If while you are debugging an application you want to change code in the current method the debugger is able to reexecute that method with out having to restart the application.
Bruce Jin
Ranch Hand
Joined: Sep 20, 2001
Posts: 666
posted
0
Thanks Steve. This is interesting. I use Eclipse IDE I will try this. You mean this is not an IDE feature but built in JDK?
Steve Chernyak
Ranch Hand
Joined: Oct 19, 2000
Posts: 113
posted
0
Yeah its cool. Eclipse is what I tried it with too. For somereason you can't do it in the main method. Im not sure if its because its static or not
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
0
Sun is calling it HotSwap. It allows a class to be updated while under the control of a debugger. More informaion on HowSwap can be found in The JPDA Enhancements Document.