Bug 131752 - search for method declaration finds fields
Summary: search for method declaration finds fields
Status: RESOLVED DUPLICATE of bug 86293
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-14 12:48 EST by Martin Aeschlimann CLA
Modified: 2006-03-14 13:37 EST (History)
0 users

See Also:


Attachments
screenshot (21.70 KB, image/png)
2006-03-14 12:51 EST, Martin Aeschlimann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2006-03-14 12:48:43 EST
20060314

- create the following class in an empty workspace with a 1.5 JRE
public class ThreadRunner {

	private static class MyThread extends Thread {
		public void run() {
		}
	}
	
	public void startInBackground() {
		MyThread thread= new MyThread();
		thread.run();
	}
}

- Open the search dialog and search for declarations on 'run()' (only the method name, no qualifying type name)
- Make sure that JRE matches are included (verify in search view title: if it says 'no JRE': that's a search dialog bug that I just fixed > 20060314: try reference search with JRE first then try again)
- strange matches are shown in the result: see screenshot
Comment 1 Martin Aeschlimann CLA 2006-03-14 12:51:36 EST
Created attachment 36256 [details]
screenshot

all results should be methods names 'run()'
Comment 2 Frederic Fusier CLA 2006-03-14 13:37:28 EST

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