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.

Bug 58980 - Stepping through wrong lines when modified class file is reloaded
Summary: Stepping through wrong lines when modified class file is reloaded
Status: CLOSED DUPLICATE of bug 57457
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks: 51877
  Show dependency tree
 
Reported: 2005-05-17 12:44 UTC by Libor Kotouc
Modified: 2010-04-29 09:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Libor Kotouc 2005-05-17 12:44:39 UTC
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.
Comment 1 Martin Entlicher 2005-06-24 17:20:38 UTC
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.
Comment 2 Martin Entlicher 2005-08-20 10:07:24 UTC
This is just a duplicate of already reported issue #57457.

*** This issue has been marked as a duplicate of 57457 ***
Comment 3 Quality Engineering 2010-04-29 09:22:40 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.