How can I get the \"real\" class of a generic type?
For Example:
public class MyClass { public void method(){ //something S
You can't. The information is stripped from the code at compile time, a process that is known as type erasure. For more, please look here: Type Erasure
edit: sorry my bad, the information is not loaded at run time.