public class ClassA <T>{
private String name;
private Object object;
private T obj;
public void setObject(Object object) { this.object = object; }
public Object getObject() { return object; }
public void setObj(T obj) { this.obj = obj; }
public T getObj() { return obj; }
public void setName(String name) { this.name = name; }
public String getName() { return name; }
}
as ClassA above, because the generic symbol may not be T, how to get the field name obj through reflection?