现在的位置: 首页 > 综合 > 正文

java.lang.IllegalArgumentException: object is not an instance of declaring class

2013年08月03日 ⁄ 综合 ⁄ 共 88字 ⁄ 字号 评论关闭

使用invoke报错,原因为第一个参数不正确。

Object result = m.invoke(npd, new Object[] {});

 

npd应该为这个方法所在的Object的实例。

抱歉!评论已关闭.