mercredi 11 février 2015

Why does the method runtimeClass of ClassTag return a wildchard class

The runtimeClass method of a ClassTag[T] returns a Class[_]. I would expect it to return a Class[T], since we know the ClassTag[T] represents the (runtime) class of T.


Why does it return "any" Class? Is there a fundamental reason for that?






Aucun commentaire:

Enregistrer un commentaire