Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 424091

Summary: [content assist] Content assist could offer proposals for method arguments.
Product: [Eclipse Project] JDT Reporter: Manoj N Palat <manoj.palat>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: srikanth_sankaran
Version: 4.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Manoj N Palat CLA 2013-12-16 03:39:43 EST
interface I {
	public int foo(int x) ;
}

public class X {
	public void bar() {
		I i = (x) -> {
			I j = (y) -> x;
			return j.foo(/*here*/);
		};
	}
}

Press <Ctrl-Space> before /*here*/. x is a valid choice, but is not displayed here.
Comment 1 Srikanth Sankaran CLA 2013-12-16 04:30:57 EST
This is not a Java 8 or lambda specific problem.

See that in the snippet below, in is not offered as a choice:

// --
interface I {
	public int foo(int x) ;
}

public class X {
	public void bar() {
		int in = 0;
		I i = null;
		return i.foo(|)
	}
}

// complete at |
Comment 2 Eclipse Genie CLA 2020-04-18 07:34:50 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.