Bug 69066

Summary: [1.5] getTypeArguments incorrect (?) when type argument is a type variable
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2004-06-30 15:10:11 EDT
latest 1_5 branch

class Data22<T>{
	T x;
	T get(){
		Data22<T> s= this;
		return x;
	}
	void set(T o1){
		x = o1;
	}
}

when you ask the reference to Data22<T> in the get methods for its type
arguments, it will say: empty array
when you ask: isRawType you get a no
when you ask: getTypeParameters: empty array

i think type arguments should be the T in this case
otherwise how would one distiguish between Data22<T> and Data22<E> if E is some
other type variable in scope
Comment 1 Adam Kiezun CLA 2004-06-30 15:21:06 EDT
i just saw that this is a 
// TODO (olivier) missing implementation of J2SE 1.5 language feature

so this report is only a reminder not a problem statement
Comment 2 Philipe Mulet CLA 2004-07-01 11:48:39 EDT
Adam - pls always indicate which API you are using. DOM AST or JavaModel ?
Comment 3 Adam Kiezun CLA 2004-07-01 11:51:46 EDT
sorry, it was ITypeBinding
(i stopped using java model some time ago)
Comment 4 Olivier Thomann CLA 2004-08-13 16:34:44 EDT
Fixed and released in HEAD.
Regression test added.
Comment 5 David Audel CLA 2004-09-22 07:09:55 EDT
Verified in I200409212000.