I want to create an instance of a class via reflection, and I know the given constructor parameters are compatible with the constructor. Though I do not have the formal parameter types of the constructor.
I know I can go through all constructors of the class to do this, but is there a more direct way in standard Java 8 API?
Aucun commentaire:
Enregistrer un commentaire