public static Object invoke ( MethodHandle method , Object target ) { try { return method . invokeWithArguments ( target ) ; } catch ( RuntimeException | Error e ) { throw e ; } catch ( Throwable e ) { throw new RuntimeException ( e ) ; } }
Invoke the given method handle with the specified single argument . Handles the exceptions declared by MethodHandle allowing this method to be used in a context where no checked exceptions may be thrown .