Bug 6015 - search for references to parameter searches against type
Summary: search for references to parameter searches against type
Status: RESOLVED DUPLICATE of bug 43967
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 32237 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-16 11:58 EST by John Arthorne CLA
Modified: 2003-10-30 09:26 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2001-11-16 11:58:54 EST
If I have the following method:

public void foo(String myString) {
  ...
  System.out.println(myString);
  ...
}

If I select "myString" on the println statement, and choose 
Search->References->Workspace

It actually searches for all references to type "String".  All I really wanted 
was all references to that parameter in that method.
Comment 1 Philipe Mulet CLA 2001-11-19 06:03:11 EST
Local variable/parameter references are not currently supported.

2 parts in the problem:
1- open on selection (used to find the actual selected element) does not find 
anything, since it cannot answer a Java element for a local declaration.

2- the search engine does not know how to find references to local variables 
(yet). It could quite easily providing (1) was resolved.
Comment 2 Philipe Mulet CLA 2003-02-19 10:24:59 EST
*** Bug 32237 has been marked as a duplicate of this bug. ***
Comment 3 Philipe Mulet CLA 2003-10-30 04:36:25 EST
should work now, please double check and dispose
Comment 4 Philipe Mulet CLA 2003-10-30 04:36:44 EST
should work now, please double check and dispose
Comment 5 Jerome Lanneluc CLA 2003-10-30 09:26:20 EST
JDT/Core part is fixed. UI side still needs to be fixed (see bug 45448)

*** This bug has been marked as a duplicate of 43967 ***