Bug 473177

Summary: [1.8] [content assist] lambda content assist not working
Product: [Eclipse Project] JDT Reporter: Caleb Rabe <caleb.rabe>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: rgransberger, stephan.herrmann
Version: 4.5   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=463476
https://bugs.eclipse.org/bugs/show_bug.cgi?id=462015
Whiteboard: stalebug
Attachments:
Description Flags
screenshot showcasing the problem none

Description Caleb Rabe CLA 2015-07-21 07:51:58 EDT
Below is an example of a very simple junit test case where the content assist doesn't work on one particular line. Specifically expected methods do not show up in the list of available methods.

        @Test
	public void testJava8StringsUnderstandingWithMaps2() {
		
		Map<Integer, String> testMap = new HashMap<>();
		testMap.put(1, "one");
		testMap.put(2, "two");
		testMap.put(3, "three");
		
		Map<Integer, String> map = testMap.entrySet()
			.stream()
			.filter( p -> p.getValue().length() == 3 )
			
			// this is the line where .getKey and .getValue are NOT suggested 
			.collect(Collectors.toMap(p -> p.getKey(), p -> p.getValue()));
		
		System.out.println("map result: " + map);
		// output: map result: {1=one, 2=two}
	}
Comment 1 Caleb Rabe CLA 2015-07-21 07:54:03 EDT
Created attachment 255329 [details]
screenshot showcasing the problem
Comment 2 rgra Missing name CLA 2018-11-16 05:16:58 EST
Seems to be a duplicate of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=462015
Comment 3 Eclipse Genie CLA 2020-11-06 12:29:24 EST
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.
Comment 4 Eclipse Genie CLA 2023-03-24 09:11:24 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.