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 97979 - Line numbers for PPs are shown incorrectly
Summary: Line numbers for PPs are shown incorrectly
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@profiler
Depends on:
Reported: 2007-03-15 14:42 UTC by Alexander Kouznetsov
Modified: 2011-11-02 20:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-03-15 14:42:17 UTC
Profiler 070314
NetBeans IDE Dev (Build 200703141900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

Steps to reproduce:
- Insert some profiling point (PP)
- Start Profiling
- Make sure the PP was hit
- Customize PPs, so that line numbers are changed
- Open PP report.
- RESULT: It shows you new customized line numbers even the original hits were
done with non-modified PPs.
- Edit code or customize PPs so that line numbers are changed again
- Close and open PP report.
- RESULT: It shows you the same line numbers as for the first time the report
was opened even the links will navigate you to the line numbers corresponding to
the latest changes.
Comment 1 Jiri Sedlacek 2007-03-22 16:29:42 UTC
In fact this is partially the same problem as in Issue 97976 so marking as its 

On the other side, line numbers will change in the Report even if profiling 
session is finished - actually header of the report just displays actual 
Profiling Point properties, not conditions for which the data have been 

*** This issue has been marked as a duplicate of 97976 ***
Comment 2 Alexander Kouznetsov 2007-03-22 16:39:02 UTC
This is not a duplicate since line numbers could change without modification of
PPs - just one new line or line removal will cause numbers to be incorrect.
However, lines are indeed updated when profiling is finished. Thus I'm lowering
the priority.
Comment 3 Jiri Sedlacek 2007-03-22 16:45:48 UTC
OK, not a duplicate, but see the explanation about report header - it's not 
related to conditions of collected data (note that the report can be shown even 
if no data are available).
Comment 4 Alexander Kouznetsov 2007-03-22 17:01:45 UTC
I would like to clarify what this issue is about: it is about the fact that when
you click on line number in PP report you could see that opened line has
different number. This is because real line numbers could be changed while
report header is not synchronized according to these changes. It synchronizes
only at profiling session start/stop.

Even this is still issue I believe P4 is not a good topic at the moment.
Comment 5 Jiri Sedlacek 2007-03-22 17:07:06 UTC
Next time please describe clearly enough what the real problem is so anyone 
other can also understand it.
Comment 6 Tomas Hurka 2007-11-07 10:37:09 UTC
Changing target milestone to dev, since NetBeans 6.0 is in high resistance mode.
Comment 7 Tomas Hurka 2009-04-08 10:11:51 UTC
Target milestone cleanup.
Comment 8 Tomas Hurka 2009-04-08 12:55:28 UTC
Milestone cleanup: future->next