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.
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.
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