Community
Participate
Working Groups
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
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
Adam - pls always indicate which API you are using. DOM AST or JavaModel ?
sorry, it was ITypeBinding (i stopped using java model some time ago)
Fixed and released in HEAD. Regression test added.
Verified in I200409212000.