好吧,我试图理解并阅读可能导致它的原因,但我就是无法理解:我的代码中有这个:try{..m.invoke(testObject);..}catch(AssertionErrore){...}catch(Exceptione){..}事情是,当它试图调用某个方法时,它会抛出InvocationTargetException而不是其他一些预期的异常(特别是ArrayIndexOutOfBoundsException)。因为我实际上知道调用了什么方法,所以我直接进入了这个方法代码,并为应该抛出ArrayIndexOutOfBoundsException的行添加了一个try-catchbloc