Skip to content

NativeJavaMethod doesn't correctly checks/test for varargs (the varargs type itself) #2372

@jcompagner

Description

@jcompagner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions