Bug 59082

Summary: [1.5] Should not offer argument completion for non generic type
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2004-04-19 11:33:40 EDT
Cheetah-03

On following code, codeassist shouldn't offer any type completion since T is 
not a generic type.

public class X <T> {
	T t1;
	X<String> x;
	void foo(T t2){
		T<Stri<CODEASSIST>
	}
}
Comment 1 David Audel CLA 2004-08-24 10:36:50 EDT
public class X <T> {
  X<Object, Stri#curosr#
}

Should codeassist offer any completion in this case ?
Comment 2 David Audel CLA 2004-08-26 08:58:22 EDT
Fixed and test added
   CompletionTests#test0032() -> test0047()

No completion are proposed if
- the type is not generic
    Object<Str#cursor#
- there is too much type arguments
  class X<T>{}
  X<Object, Str#cursor#
Comment 3 David Audel CLA 2004-09-23 06:18:57 EDT
Verified in I200409212000.