Community
Participate
Working Groups
Considering following code: public class La { public static void main(String [] args) { La l = new La(); String res = l.calc((a, b) -> "sum:" + (a.intValue() + b.intValue()), new Integer(2), new Integer(2)); System.out.println(res); } public String calc(BiFunction<Integer, Integer, String> bi, Integer i1, Integer i2) { return bi.apply(i1, i2); } } Context assistant does not work when cursor placed just after "a." in statement "a.intValue()", but it works when placed after "b." "a" is however correctly recognized as Integer, but context assistant only correctly works on "b".
Reproduced, will take a look during 4.7.
Bulk move out of 4.8
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.
I can confirm the bug still exists 4 years later in 2020-09. Code completion works in `b.` but not for `a.` -- Configuration Details -- Product: Eclipse IDE 4.17.0.20200910-1200 (org.eclipse.epp.package.java.product)Installed Features: org.eclipse.jdt 3.18.500.v20200902-1800 Versioning Plugin: org.eclipse.platform 4.17.0.v20200902-1800
Testing on today's HEAD completion works fine after 'a.' Likely fixed via bug 539685 Feel free to re-open if you can reproduce on a recent build (from https://download.eclipse.org/eclipse/downloads/index.html ) *** This bug has been marked as a duplicate of bug 539685 ***
Verified for 4.20 RC1 with build I20210525-1800