I have a method in class A:
class Parameter {
...
}
class A {
private <T extends B> void call(T object, Parameter... parameters){
...
}
}
Now I want to use reflection to get the method "call",
A a = new A();
// My question is what should be arguments in getDeclaredMethod
//Method method = a.getClass().getDeclaredMethod()
Thx.
Class a = new A();is not valid. You either meanClass a = new A().getClass();orA a = new A();.