Method.invoke()Constructor.newInstance() に渡された引数が、Class.getMethod()Class.getConstructor() で指定したシグネチャーと一致しないケースを報告します。

例:


  Method m = myObj.getClass().getMethod("myMethod", int.class);
  // 引数は int 値である必要あります
  m.invoke(myObj, "abc");

2017.2 の新機能です