Local<?>[] params = new Local[types.length];
for (int i = 0; i < params.length; ++i) {
params[i] = constructorCode.getParameter(i, types[i]);
}
MethodId<T, ?> superConstructor = superType.getConstructor(types);
constructorCode.invokeDirect(superConstructor, null, thisRef, params);
constructorCode.returnVoid();
}
}
// The type parameter on Constructor is the class in which the constructor is declared.