Eclipse hot code replace not update

Why can't simple code updates get updated? The "hot replace replace" message appears as usual for large changes, but changing the println line or commenting out a method call sometimes does nothing and the application must be restarted to apply the change. I think it might have something to do with native calls, but other than that there is no picture.

+2


source to share


2 answers


Unless you introduce changes that affect the signature of the class, as Steven said, it should work. If it doesn't work, you make sure you enable "Build Automatically" for the project (Project → Build Automatically).



This is required so that Eclipse does local builds when you make changes and push them to the server when you make changes.

+7


source


Code hot swapping prevents you from changing the class signature. This means no attribute changes, no add or remove methods, etc.



What you need to do is change the implementation of the method.

+1


source







All Articles