This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When user modifies a source file, then debugger maps OLD CLASS lines announced by debuggee process to the NEW SOURCE lines in that source file. This mechanism does not cover the situation when that source file is recompiled and the resulting class file is reloaded by JVM. Debugger then incorrectly maps the NEW CLASS lines to the NEW SOURCE ones because it does not know about class file reloading. Maybe, there should be some kind of the line map reseting when a class file is reloaded.
It also depends on whether you're stepping inside the obsolete (old) method (there remains the old code in methods that are on the current stack) or the new method (when you enter the method after class reload). The obsolete and reloaded methods needs to be handled differently.
This is just a duplicate of already reported issue #57457. *** This issue has been marked as a duplicate of 57457 ***
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.