Possible Duplicate:
How to determine the class of a generic type?
Get generic type of class at runtime
Java Generics: Accessing Generic Type at runtime
For a generic object parameter to a method
void bar(Foo<?> foo) {
}
How can you retrieve of the type of the casted object, i.e. the type of ? ?