Quick quetion about Java Generic and Reflection
gbb21 2011-04-08 12:32:07 For a generic class, for example, List<T>, how can I get the "Class" object ?
For raw type List, I can get Class<List> by calling List.class; however, I cannot call List<T>.class to get Class<List<T>> object.
The motivation that I want to get Class<List<T>> is for the follow function call.
List<T> list = create(Class<List<T>> c);
thanks for your help, in advance .