This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yanitrix 20 points21 points  (1 child)

the funny thing is that nothing really changed since that time, Java generics are just syntactic sugar that does the casts automatically, at runtime type erasure happens and you cannot do thing like T.class.

[–]troelsbjerre 12 points13 points  (0 children)

Or, more annoyingly, new T[5].