Community
Participate
Working Groups
Eclipse Java EE IDE for Web Developers. Version: Neon.1a Release (4.6.1) Build id: 20161007-1200 Given the following class in a plain Java 8 project: import java.util.function.*; public class A { public static class C { public C m() { return this; } public s(Consumer<Object> a, Consumer<Object> b) { } } public static void main(String[] args) { new C().m().s(v -> System.out.println(v), e -> { System.out.println(e); }); } } Using F3 or CTRL+Click on "m" doesn't work but works for "C", "s" or anything else in that line. If I remove the { } from the second lambda: new C().m().s(v -> System.out.println(v), e -> System.out.println(e)); CTRL+Click works for "m" as well. If I add { } to the first lambda, CLTR+Click on "m" stops working again: new C().m().s(v -> { System.out.println(v); }, e -> System.out.println(e)); (There are no compilation errors.)
If I add a semicolon before the expression: ; new C().m().s(v -> System.out.println(v), e -> { System.out.println(e); }); CTLR+Click works on "m"
It's a bug in ICodeAssist.codeSelect(..) which does not return any Java element in this case. Moving to JDT/Core.
Tentatively targeting 4.7.
*** Bug 532935 has been marked as a duplicate of this bug. ***
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.