frida-java-bridge icon indicating copy to clipboard operation
frida-java-bridge copied to clipboard

*bug fix* wrong overload invocation of overloaded functions - new idea

Open Roee-BY opened this issue 3 years ago • 0 comments

As a continuation of #247 , what if instead of throwing an error we will just warn the user and notify him which overload was selected.

the original pull request message: "the function invocation mechanism was choosing the first compatible func according the the args and available overloads but there was a bug since some types that are available in java are unified into one type in JS for example JS number can be int double float or long hence choosing the first might cause a problem (in my case an android app crashes due to the incorrect overload). instead of the current mechanism i have implemented a mechanism that goes over all of the overloads and if there is more then one matching overload it invokes the method throwIfDispatcherAmbiguous(dispatcher) which will alert the user about the multiple a available overloads and ask his to choose which one to use."

Roee-BY avatar Feb 05 '23 23:02 Roee-BY