1
J'utilise Method.invoke() pour appeler une fonction dans un fichier tiers. Parfois, j'obtiens une java.lang.reflect.InvocationTargetException levée. Comment pouvez-vous comprendre quelle était la véritable exception?java.lang.reflect.InvocationTargetException - détermine l'erreur réelle?
Il y a aussi getTargetException() mais le javadoc suggère en effet d'utiliser getCause() qui a été présenté plus tard. – ewernli