Hello
Is it possible to use getConstructor to obtain the constructor of the class X below?
public class A {
}
public class Y {
}
public class X extends Y {
public X(A a, Y[] yy) {
}
public void someMethod() throws SecurityException, NoSuchMethodException {
Class<? extends Y> clazz = X.class;
Constructor<? extends Y> c =
clazz.getConstructor(new Class[]{
A.class,
/* what do I put in here for the array of Ys? */
});
}
}
Thanks