public void checkParameters(Class[] arguments) {
        // lets check that the argument types are valid
        if (!isValidMethod(arguments)) {
            throw new IllegalArgumentException(
                    "Parameters to method: "
                    + getName()
                    + " do not match types: "
                    + InvokerHelper.toString(getParameterTypes())
                    + " for arguments: "
                    + InvokerHelper.toString(arguments));
        }
    }
public void checkParameters ( Class [ ] arguments ) { if ( ! isValidMethod ( arguments ) ) { throw new IllegalArgumentException ( "Parameters to method: " + getName ( ) + " do not match types: " + InvokerHelper . toString ( getParameterTypes ( ) ) + " for arguments: " + InvokerHelper . toString ( arguments ) ) ; } }
Checks that the given parameters are valid to call this method

@param arguments the arguments to check
@throws IllegalArgumentException if the parameters are not valid