Possible Duplicate:
Get class of generic
I'm trying to do this:
public static<T extends Object> T perform(){
Class<T> classObject = T.class;
Class<T> classObjectAgain = T.getClass();
//...
}
I thought the "extends Object" would bring me access to .class and getClass()... However this doesn't compile: "Illegal class litteral"
Do you know how I could perform such an operation ?