in the :constructors map and subsequent -init definitions, how do I represent a varargs constructor (assuming the superclass has multiple constructors of which one is varargs) ?
in the :constructors map and subsequent -init definitions, how do I represent a varargs
Share
Since varargs are essentially syntax sugar for Object arrays, you could just use “[Ljava.lang.Object;” as the type of constructor’s parameter.
Here’s some sample code:
and that’s how it looks in REPL