hot code replacement

How do I do hot code replacement in Eclipse? I tried to write another line while debugging the code, but I got the warning message about the obsolete methods in stack.
[174 byte] By [TechGirla] at [2007-11-27 6:38:08]
# 1

hot code replacement will not replace the methods on stack. Those

methods will be marked obsolete. Those frames can be removed

by using PopFrame feature. I do not know if eclipse has any feature

to support that. But it is not safe to pop a frame. If the obsolete method

does not bother you than just ignore it.

swamyva at 2007-7-12 18:06:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

I didn't write a new method to replace a method.

Suppose that I have set a breakpoint at System.out..println("hi"), debug it, and then change the number 2 to 3 and save it, then I want this code to work well. It did show a pop up dialog explaining about obsolete methods.

What does it mean?

public void testSomething() {

System.out.println("hi");

System.out.println("2");

}

Thanks.

TechGirla at 2007-7-12 18:06:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

I am also getting same error (something like "add method not implemented") while doing hot code replacement using IntelliJ 4.5. I did not add/remove any method in the class file. I am just changing a text string value. or label on a button. I am using 1.5.0_10 java version.

I checked on the web and found that it is a java bug. Does some body has a workaround for it. I do not know is this is fixed in 1.6.

Thanks

gupta_narena at 2007-7-12 18:06:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...