Invokes the method this object represents. This method is not final but it should be overloaded very carefully and only by generated methods there is no guarantee that it will be called. @param object The object the method is to be called at. @param arguments Arguments for the method invocation
(final Object object, Object[] arguments)
| 293 | * @return The return value of the invoked method. |
| 294 | */ |
| 295 | public Object doMethodInvoke(final Object object, Object[] arguments) { |
| 296 | arguments = coerceArgumentsToClasses(arguments); |
| 297 | try { |
| 298 | return invoke(object, arguments); |
| 299 | } catch (Exception e) { |
| 300 | throw processDoMethodInvokeException(e, object, arguments); |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | /** |
| 305 | * Called when an exception occurs while invoking this method. |