Bug 473177 - [1.8] [content assist] lambda content assist not working
Summary: [1.8] [content assist] lambda content assist not working
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 07:51 EDT by Caleb Rabe CLA
Modified: 2023-03-24 09:11 EDT (History)
2 users (show)

See Also:


Attachments
screenshot showcasing the problem (69.02 KB, image/png)
2015-07-21 07:54 EDT, Caleb Rabe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.