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

Bug 416319

Summary: Content Assist method invocation as arg
Product: [Eclipse Project] JDT Reporter: Joshua Spoerri <spoerri>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Joshua Spoerri CLA 2013-09-01 18:03:56 EDT
In Preferences... / Java / Editor / Content Assist, select "Insert best guessed arguments"

public class Test {
	int returnInt() {
		return 123;
	}

	void acceptInt(int g) {
	}

	void test() {
                acceptInt|
        }
}

Pressing ctrl+space should suggest "returnInt()" as an argument to acceptInt(), but it just suggests 0.

The documentation here http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fpreferences%2Fjava%2Feditor%2Fref-preferences-content-assist.htm implies it should work:

Insert best guessed arguments	 If selected, code assist will fill the arguments with the best matching variable, field or *method invocation* from the context where a method proposal is inserted.
Comment 1 Eclipse Genie CLA 2019-09-28 19:05:02 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.