Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6218843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:40:45+00:00 2026-05-24T07:40:45+00:00

In Eclipse, if you run a program under Debug you can make changes to

  • 0

In Eclipse, if you run a program under “Debug” you can make changes to the code, and most of the time it will take effect immediately.

Sometimes, though, it will not — in which case it pops up a message, or says “(may be out of sync)” next to the threads in the Debug pane.

What determines the kind of changes that can be hot-swapped? I’ve noticed these changes usually fail:

  • introducing new anonymous inner classes
  • changing classes (renaming/adding/removing fields and methods) when the class is instantiated
  • adding a try-catch block

but sometimes it seems to be almost random. What is the logic behind determining whether code can be replaced or not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:40:47+00:00Added an answer on May 24, 2026 at 7:40 am

    Method statements (procedural code) work. Everything related to adding, removing or changing class schemas does not work. So no modifying inheritances, fields, extracting methods, changing signatures etc.

    Usually hot-swapping method statements does not work if you are doing anything forbidden at the same time. Then the hot-swapping connection is “broken”, so to say.

    One thing I do not know for sure is anonymous classes. Have never tried that in connection with hot-swapping.

    Edit: The guys over there at zeroturnaround have compiled a list in their features section what the jvm debugger can not do out of the box to promote their product: http://www.zeroturnaround.com/jrebel/features/ . Whether you like the tool or not, the list reflects my experience.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there some way by which I can configure eclipse to run a program
Can I run external program programmatically in Eclipse without configuring as an external tool
I am new to Java and am trying to run a program using Eclipse.
Whenever I run any jython program in Eclipse, I got the following error in
I need an Eclipse Plugin run shell scripts under Linux. I have a beautiful
When trying to run an Eclipse Dynamic Web Project under a Tomcat setup using
I have findbugs plugin for eclipse which when run on my project will show
From Eclipse I can easily run all the JUnit tests in my application. I
I run Eclipse 1.6.0, and Glassfish V3 back end. The program run fine, the
I compile and run my program in Eclipse and everything works fine, but when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.