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 60718 - "Go To Source" go to the wrong source
Summary: "Go To Source" go to the wrong source
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-02 08:57 UTC by _ alexlamsl
Modified: 2007-03-14 09:45 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 _ alexlamsl 2005-07-02 08:57:38 UTC
Code:

public class RealImage {
    ...
    public Pixel getPixel(Point position) {
        return getPixel(position, pixelRange);
    }
    public Pixel getPixel(Point position, double pixelRange) {
        ...
    }
    ...
}
    
Profiler's "Live Result":

realgraphics.RealImage.getPixel(realgraphics.Point, double) | ... | ...

Right-click on it and "Go To Source", it would open RealImage.java but the 
cursor would be at getPixel(Point) instead.
Comment 1 iformanek 2005-08-04 09:19:57 UTC
I was able to reproduce, thanks for the report.
Will fix in M9
Comment 2 Jiri Sedlacek 2005-11-22 16:47:43 UTC
This bug can occur when showing source of any innerclass or anonymous class.

Fixed for M11.
Comment 3 ehucka 2006-03-30 12:44:33 UTC
I'm able to reproduce it in profiler 5.5 20030330. There are two methods with
the same name but different parameter's type. One is called from another:

protected void update(TextData data) {
        ...
        HashSet<String> wordsset=new HashSet();
        update(wordsset);
}
    
protected void update(HashSet<String> wordsset) {
...

Go to source always goes to the first method.
Comment 4 Tomas Hurka 2006-03-31 12:13:49 UTC
This is different case. Next time please file separate issue. I did it for you. See issue #74242. 

Comment 5 Alexander Kouznetsov 2007-03-14 09:45:52 UTC
Closing old issues