Bug 276487 - [content assist] anonymous type completion should end with linked mode for generic type arguments
Summary: [content assist] anonymous type completion should end with linked mode for ge...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 09:01 EDT by Markus Keller CLA
Modified: 2009-05-18 04:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.