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

Bug 321688

Summary: [content assist] Content assist duplicates parameter
Product: [Eclipse Project] JDT Reporter: Johannes Rieken <johannes_rieken>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Johannes Rieken CLA 2010-08-04 05:40:18 EDT
Build Identifier: 3.6

use this CU


public class CU {
	
	interface A {
		void m();
	}
	
	void m(A a, int b) {
		
	}
	
	void m2() {
		
	}
}

Reproducible: Always

Steps to Reproduce:
* In method m2, type 'm'  and invoke content assist - will be completed to m(a, b)
* select 'a' and type 'new,  invoke content assist, select new CU.A()...
 > the code is messed up - the parameter-placeholder for b is duplicated, there is misplaced miscolon

void m2() {
		m(new A() {
			
			public void m() {
				// TODO Auto-generated method stub
				
			}
		};, b, b)
	}
Comment 1 Dani Megert CLA 2010-08-04 05:57:58 EDT
Broken since 3.5.
Comment 2 Eclipse Genie CLA 2018-12-09 13:00:21 EST
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.