Community
Participate
Working Groups
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} }
Created attachment 255329 [details] screenshot showcasing the problem
Seems to be a duplicate of https://bugs.eclipse.org/bugs/show_bug.cgi?id=462015
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.