Bug 276487

Summary: [content assist] anonymous type completion should end with linked mode for generic type arguments
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2009-05-15 09:01:38 EDT
I20090514-2000

Anonymous type completion should end with linked mode for generic type arguments:

- Have:

public class Runner {
	private void foo() {
		new Call
	}
}

- Content assist after 'new Call'
- Choose 'Callable() Anonymous Inner Type'

=> Result:

import java.util.concurrent.Callable;

public class Runner {
	private void foo() {
		new Callable<V>() {
			
			@Override
			public Object call() throws Exception {
				// TODO Auto-generated method stub
				return null;
			}
		};
	}
}

=> The 'V' in 'new Callable<V>' and the 'Object' in 'public Object call()' should be the same (Object), and they should be connected in a linked mode group, such that I can change the guessed type argument.