I am not an Eclipse user, but I am told this is possible. You could try "Drop to frame" to step up one frame and start over with the method call, I am told...

Otherwise, I don't know.

-> richard

On 6/24/10 11:35, Rich Mayfield wrote:
Does hot code swapping work with Felix under Eclipse?

Although I am able to set up my Eclipse environment to set breakpoints in my 
bundles and step through code, I am unable to edit code, save, and then have 
Eclipse rewind to the beginning of the method I just modified.

I am accustomed to doing this in non-bundle code, but when I do this in my 
bundle code I receive the following error from Eclipse:

"
<name of my main class>  at localhost:50785 contains obsolete methods.

Reason:
The virtual machine was unable to remove all stack frames running old code from 
the call stack.  The virtual machine is not supplying the debugger with valid 
data for those frames.  Stepping into these obsolete frames may be hazardous to 
the target virtual machine.
"

Eclipse 3.5, Felix 3.0.0, fileinstall 3.0.0

fileinstall is pointed to my Maven build's "target" directory which contains the exploded 
bundle under the "classes" sub-directory.  The target/classes directory is my Eclipse 
build output directory.  I have my fileinstall polling set to something insanely high (8 hours) so 
that I don't trigger a restart of the bundle - I'd like to avoid stopping and restarting the bundle 
and would like to just rewind to the beginning of the method.

Thanks, Rich





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to