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

Bug 299936

Summary: [search] Search finds too many references
Product: [Eclipse Project] JDT Reporter: Michael Schneider <michschn>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: frederic_fusier, Olivier_Thomann
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Michael Schneider CLA 2010-01-18 09:37:20 EST
Build Identifier: I20091030-1201

See sample below. 
1) invoke call hierarchy on both doIt methods
observe: for both doIt methods, caller1 and caller2 are returned

public class Foo {

	public <T> void doIt(T arg) {

	}

	public <T extends Runnable> void doIt(T arg) {
		
	}

	public void caller1() {
		doIt(new Object());
	}

	public void caller2() {
		doIt(new Runnable() {
			public void run() {
			}
		});
	}

}

Reproducible: Always
Comment 1 Michael Schneider CLA 2010-01-18 09:38:14 EST
note: when changing the signature of
public <T> void doIt(T arg)
to
public void doIt(Object arg)
the reference search works as expected
Comment 2 Eclipse Genie CLA 2019-04-19 15:06:36 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.

If you have further information on the current state of the bug, please add it. 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.