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

Bug 332071

Summary: Search does not find callers of private method
Product: [Eclipse Project] JDT Reporter: Paul Webster <pwebster>
Component: CoreAssignee: Satyam Kandula <satyam.kandula>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, deepakazad
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Paul Webster CLA 2010-12-07 14:02:36 EST
I have a number of test and example projects open in my workspace.  I then open Workbench.class (referenced from one of the projects Plug-in Dependencies lists).

When I click on the private method org.eclipse.ui.internal.Workbench.initializeSourcePriorities() and do CTRL+ALT+H it shows up in the Call Hierarchy view, but expanding to see the callers reveals an empty list.

PW
Comment 1 Deepak Azad CLA 2010-12-07 20:13:30 EST
Not a new problem in M4, happens with M3 build as well.
Comment 2 Dani Megert CLA 2010-12-08 03:57:30 EST
Search also doesn't find the reference but the AST is correct (Mark/Find Occurrences works). I suspect this never worked (tried 3.2 and it's broken there too).

It also doesn't work if I import the required projects as binary projects. However, importing them as source fixes the issue.

Simple Test Case:
1. start new workspace
2. import 'org.eclipse.ui.workbench' as binary plug-in
3. open Workbench.initializeSourcePriorities() in the editor
4. search reference or open Call Hierarchy on it
==> no references

The test case works if 'org.eclipse.ui.workbench' is imported as source (either from target or CVS).
Comment 3 Satyam Kandula CLA 2010-12-08 04:15:53 EST
This is similar to bug 151389

*** This bug has been marked as a duplicate of bug 151389 ***
Comment 4 Satyam Kandula CLA 2010-12-08 06:07:29 EST
Calls from anonymous functions are missing. There is a problem correlating the source to the appropriate model element of the anonymous class file, causing this problem. Need to fix this correlation.