1

Having some invokeMethod that takes in (java.lang.String method_name, Object[] params, Class[] params_classes) How would you invoke some method with signature like void MyMethod()?

myWallJSON
  • 9,110
  • 22
  • 78
  • 149
  • Which `invokeMethod` are you referring to? There's only one method by that name in Java6 (on `javax.script.Invocable`), and it doesn't have that signature. – skaffman Feb 12 '12 at 00:41

1 Answers1

6

Use new Object[0] and new Class[0] to specify empty arrays.

Ben Hocking
  • 7,790
  • 5
  • 37
  • 52