commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <>
Subject Re: MethodUtils.invokeMethod on a static method
Date Sat, 12 Mar 2005 05:33:19 GMT
On Fri, 2005-03-11 at 23:17 -0400, Néstor Boscán wrote:
> Hi
> I would like to use MethodUtils.invokeMethod to call a static method but it
> always ask for an object. Is there a way to call a static member?

I believe it works the same as java.lang.reflect.Method.invoke, ie the
first parameter ("object") is ignored if the method is static; so just
pass null as the object.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message