Bug 455943 - [1.8][navigation] Search references and call hierarchy do not list lambdas
Summary: [1.8][navigation] Search references and call hierarchy do not list lambdas
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows NT
: P3 major (vote)
Target Milestone: 4.5 M5   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-22 05:25 EST by Lukas Eder CLA
Modified: 2015-01-28 01:41 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 Lukas Eder CLA 2014-12-22 05:25:35 EST
A simple test case to reproduce this issue:

--------------------------------------------
package test;

public class Test {
	static void test() {
		test(() -> {});
	}
	
	static void test(I i) {
		
	}
}

@FunctionalInterface
interface I {
	void method();
}
--------------------------------------------

When I click Ctrl-Shift-G (workspace references) or Ctrl-Alt-H (call hierarchy) on I.method(), then the lambda call in Test.test() does not get listed.

I set the severity of this issue as "major" because these two features are very important tools to discover *all* usages of methods / other objects within a project.

A related issue is this one here, where the lambda isn't shown as an implementation of the functional interface:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=423123
Comment 1 Lukas Eder CLA 2014-12-23 02:19:40 EST
My bad. There is actually no call to method() at all, just an implementation of method()
Comment 2 Sasikanth Bharadwaj CLA 2015-01-28 01:41:30 EST
Verified invalid for 4.5 M5