Previously, I received an answer on this (see
thread topic without the part 2), where I was struggling to find the correct syntax to invoke a method that had a variable argument list using reflection, e.g.,
and I wanted to use reflection to call this method (since I won't know the method name until runtime).
The previous answer was this:
However, I'm still struggling with how to invoke this. I've tried:
I get an warning saying I need to cast the ss to Object[], but then when I do that, I get a ClassCastException when the m.invoke is executed.
Hope that explains enough.
thanks!
steve upton