Bug 549144 - Type hierarchy not showing method references
Summary: Type hierarchy not showing method references
Status: CLOSED DUPLICATE of bug 423123
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.12   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-10 10:43 EDT by Ralph Gerbig CLA
Modified: 2019-07-10 12:26 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Gerbig CLA 2019-07-10 10:43:10 EDT
In the type hierarchy (F4) and quick type hierarchy (CTRL+T) method references are not shown. Lambdas are shown. The following code example demonstrates this behaviour.

public class TypeHierarchy {

	private interface MyInterface {
		void interfaceMethod(String str); // 1
	}
	
	public static void main(String[] args) {
		MyInterface interfaceLambda = str -> System.out.println(str); // 2
		MyInterface interfaceMethodReference = TypeHierarchy::interfaceMethodImplentation; // 3
	}
	
	private static void interfaceMethodImplentation(String str) {
		System.out.println(str);
	}
}

Calling the type hierarchy on MyInterface#interfaceMethod (1) does display the lambda only (2). The method reference is not shown (3).
Comment 1 Till Brychcy CLA 2019-07-10 12:26:39 EDT

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