I have a function with a signature similar to String.format(String, Object...).
I want to call this function from JRuby without the last parameters (since it is optional), but my code throws an ArgumentError (wrong # of arguments(1 for 2))
Is there a way to call this function with only 1 argument just like I would do in Java?
Wrap the varargs into a Java array
If all you want is to skip the varargs, pass an empty Java array instead