Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 379403

Summary: [search] Search of an overriden method string in an inner class doesn't return any references
Product: [Eclipse Project] JDT Reporter: Jay Arthanareeswaran <jarthana>
Component: CoreAssignee: JDT Core Triaged <jdt-core-triaged>
Status: CLOSED WONTFIX QA Contact: Satyam Kandula <satyam.kandula>
Severity: normal    
Priority: P3 CC: amj87.iitr, stephan.herrmann
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Jay Arthanareeswaran CLA 2012-05-14 07:57:17 EDT
Use the following code:

package p2;
public class A {
    class B extends A {
        @Override
        long k(){
            return 0;
        }
    }
    long k(){
        return 0;
    }
    public long m(){
        return new A().k();
    }
}

1. Open the Search -> Java dialog and enter p2.A.B.k() as the search string.
2. Select options "method" and "references" and click Search.

The search returns zero results. However, selecting the method in the editor and doing a Ctrl+Shift+G shows the appropriate result.
Comment 1 Satyam Kandula CLA 2012-05-15 03:10:38 EDT
This happens for inner classes only. It should have been there since long. This is atleast reproducible in 3.5.
Comment 2 Eclipse Genie CLA 2020-04-22 15:40:29 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.