how can I find the constructor of a class which get passed a generic parameter. For example such a class:
class myClass<T> {
public myClass(T val1, Long val2 String val3){
...
}
}
Using the usual reflection approach getConstructor()
lacks the proper parameters:
Constructor<?> myConstructor = myClass.class.getConstructor( ??what here??, Long.class, String.class);
Any ideas??