See our patch here: Servoy@2255c79
The thing is if you have:
object.method(String...)
object.method(Numer...)
and that is being called from inside rhino then it does matter what the type is of the argument
But the current code of Rhino just doesn't test that at all (it only would test the arguments before the varargs, but it stops at the var args itself and then all methods are the same in weight)
But it does need to test the actual argument of the vararg to see if that matches.
See our patch here: Servoy@2255c79
The thing is if you have:
object.method(String...)
object.method(Numer...)
and that is being called from inside rhino then it does matter what the type is of the argument
But the current code of Rhino just doesn't test that at all (it only would test the arguments before the varargs, but it stops at the var args itself and then all methods are the same in weight)
But it does need to test the actual argument of the vararg to see if that matches.