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

Bug 294233

Summary: [content assist] "Insert best guessed arguments" doesn't work.
Product: [Eclipse Project] JDT Reporter: Alejandro Torras <atec_post>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
.eclipseproduct file for build-id 20090621-0832 none

Description Alejandro Torras CLA 2009-11-04 13:05:48 EST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ca; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: 20090621-0832

Maybe I'm doing something wrong but since I downloaded the new Galileo version this feature just don't work in neither variable, field nor method invocation proposals.


Reproducible: Always

Steps to Reproduce:
1. Create a String variable (named "stringVar" for example) and then try to let it be "best-guessed" when calling Integer.parseInt() static method.
Comment 1 Alejandro Torras CLA 2009-11-04 13:06:36 EST
I think this bug is important because it makes me erase and re-type the method arguments until I disable the "Fill method arguments and show guessed arguments" option, but doing so it just downgrades the "java edition" experience in eclipse, in my humble opinion, to a "just works" experience.

Regards.
Comment 2 Dani Megert CLA 2009-11-05 11:00:53 EST
This works fine for me using 3.6 M3:

0. start with new workspace
1. paste the following snippet into the Package Explorer:
public class a {
	void foo() {
		String stringVar;
		Integer.parse
	}
}
2. code assist after parse
3. select parseInt(String)
==> Integer.parseInt(stringVar)

If you still see the bug with 3.6 M3 then please reopen with more detailed steps to reproduce.
Comment 3 Alejandro Torras CLA 2009-11-05 11:29:00 EST
Hi Dani,

Thank you for your fast reply.

Following your posted test, it seems a problem with some plugin I have installed after or I just downloaded a bogus build.

Should I post the "Help > About Eclipse > Installation Details > Configuration " details?

Regards.
Comment 4 Alejandro Torras CLA 2009-11-05 11:42:05 EST
Created attachment 151443 [details]
.eclipseproduct file for build-id 20090621-0832
Comment 5 Alejandro Torras CLA 2009-11-05 11:42:28 EST
Ops!

It seems that this bug has been targeted for version 3.6 *wrongly*, because the .eclipseproduct attached shows clearly version 3.5.0 inside.

Reopening the bug and changing the version to 3.5
Comment 6 Alejandro Torras CLA 2009-11-05 11:43:24 EST
Changing Version to 3.5 and reopening for revision.
Comment 7 Dani Megert CLA 2009-11-06 03:14:27 EST
>Changing Version to 3.5 and reopening for revision.
Same test case from comment 2 also works for me using Eclipse SDK R3.5 ;-)

Alejandro, I suspect you have Mylyn installed and you're seeing bug 271252. Please reopen if I'm wrong.

*** This bug has been marked as a duplicate of bug 271252 ***