posted 12 years ago
Hi all,
I have written a code to use Generic classes,
The code works fine,but i want to know that why does a warning occurs during the casting from a to x,even though i have mentioned the relationship that T$ extends T?
Its very well understood that if i do not establish a relationship between T and T$,and then try to assign one type to other,compiler gives an error.But after 'T$ extends T;,if i assign T$ to T with casting,no warning occurred,so why in this case?
Any replies would be helpful.
Thanks...
Thanks,
Sudhanshu(OCPJP,OCEJPAD)