Bug 69066 - [1.5] getTypeArguments incorrect (?) when type argument is a type variable
Summary: [1.5] getTypeArguments incorrect (?) when type argument is a type variable
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: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 15:10 EDT by Adam Kiezun CLA
Modified: 2004-09-22 07:09 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 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.