Replies: 1 comment 4 replies
-
|
There are two classes in this class. Looks like anonymous class that prints |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
This may be a misunderstanding on my side, but here it is.
When running a Java program from Eclipse (I originally encountered this while running JUnit test cases in an older version of Eclipse, but plain Java programs in latest Eclipse behave the same) and the editing and saving the source code, the new version of the code will be used in some parts of the running app.
Steps:
About menu shows:
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2025-09 (4.37.0)
Build id: 20250905-1456
Expected output:
first: 340
THREAD theValue = 340
second: 340
Actual output:
first: 340
THREAD theValue = 999
second: 340
Changing the preference Java / Debug "Enable hot code replace" to disabled makes no change to the above behavior.
Beta Was this translation helpful? Give feedback.
All reactions