Bug 59082 - [1.5] Should not offer argument completion for non generic type
Summary: [1.5] Should not offer argument completion for non generic type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-19 11:33 EDT by Philipe Mulet CLA
Modified: 2004-09-23 06:18 EDT (History)
0 users

See Also:


Attachments

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