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 244460 - When profiling; going to source on an overloaded method that includes an inner class in its signature takes you to the wrong method
Summary: When profiling; going to source on an overloaded method that includes an inne...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-13 11:51 UTC by RichardTingle
Modified: 2015-07-22 04:38 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 RichardTingle 2014-05-13 11:51:17 UTC
The following program when profiled will (correctly) show time spent within the testOverlap(ArrayList b,InnerClass o) method. 

However, when clicking "go to source" on this method within the profiling results you are taken instead to the method testOverlap(HashSet b, InnerClass o). 

This appears to have something to do with having the InnerClass in the signature as removing that/making it not an inner class removes the problem.

Both static and non static methods seem to show the problem. I first became aware of this problem in Netbeans 8, but that may be coincidence.



public class ProfileTest {

    
    private boolean testOverlap(ArrayList b,InnerClass o){
        
        return true;
        
    }
    

    
    private boolean testOverlap(HashSet b, InnerClass o){
        return true;
        
    }
    
    
    public static void main(String[] args) {
        ProfileTest p=new ProfileTest();
        
         p.testOverlap(new ArrayList(),new InnerClass());
    }
    

    private static class InnerClass{
        
    }
    
    
}
Comment 1 Tomas Hurka 2015-07-20 15:18:33 UTC
Fixed in profiler-main

changeset:   289321:302c8b98ed82
user:        Tomas Hurka <thurka@netbeans.org>
date:        Mon Jul 20 17:17:35 2015 +0200
summary:     bugfix #244460, getRealTypeName() fixed to include $ in inner-class name
Comment 2 Quality Engineering 2015-07-22 04:38:33 UTC
Integrated into 'main-silver', will be available in build *201507220303* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/302c8b98ed82
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #244460, getRealTypeName() fixed to include $ in inner-class name