Hi everyone,

I've been using Jython for a few weeks now and am very impressed, though have come into a bit of a problem recently. A few of my classes implement Java's relatively new "var args" option, allowing for a variable number of arguments, like so:

public static void test(String... params) {}

When I try to call MyClass.test, Jython is always expecting one argument and I get an error like this:

Exception in thread "AWT-EventQueue-0" Traceback (innermost last):
  File "<string>", line 1, in ?
TypeError: test(): expected 1 args; got 3

Does anyone have any advice? Does Jython even support this?

Thank you,
Wojciech Gryc


Five Minutes to Midnight:
Youth on human rights and current affairs