Click to See Complete Forum and Search --> : Reflection


duk97msw
October 2nd, 2000, 04:42 AM
Hi!
We got some problems when we're using the Reflection method invoke (Object obj, Object[] args). It works fine as long as the method we want to invoke has parameters but how should we do if the method doesn't have any parameters?? We know that we've "found" the correct method to invoke by doing the "getMethod"-thing and all that so the problem is the Object[] args. We've tried millions of things....to replace the args with null, to make an empty Object[] and send it into the invoke method and so on.
Help us! :)
Mia & Lovisa