Bug 99995 [code assist] Code Assist for parameterized anonymous types: overridden methods for raw, not parameterized
I20050610-1757 (3.1RC2) public class Anon { void test() { new java.util.ArrayList<Integer>() } } Invoke content assist after 'ArrayList<Integer>(' and choose the anonymous. -> The methods to be overridden are constructed for a raw ArrayList (they have their 'E's replaced by 'Object' instead of 'Integer').
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AnonymousTypeCompletionProposal.java
private IType fDeclaringType;
	public AnonymousTypeCompletionProposal(IJavaProject jproject, ICompilationUnit cu, int start, int length, String constructorCompletion, String displayName, String declaringTypeName, int relevance) {
		super(constructorCompletion, cu, start, length, null, displayName, relevance);
		Assert.isNotNull(declaringTypeName);
		Assert.isNotNull(jproject);
		Assert.isNotNull(cu);
		fDeclaringType= getDeclaringType(jproject, declaringTypeName);
		setImage(getImageForType(fDeclaringType));
		setCursorPosition(constructorCompletion.indexOf('(') + 1);
	}
	private int createDummy(String name, StringBuffer buffer) throws JavaModelException {
		String lineDelim= "\n"; 
		buffer.append("class "); 
		buffer.append(name);
		if (fDeclaringType.isInterface())
			buffer.append(" implements "); 
		else
			buffer.append(" extends "); 
		buffer.append(fDeclaringType.getFullyQualifiedName('.'));
		int start= buffer.length();
		buffer.append("{"); 
		buffer.append(lineDelim);