qtiuto / lua-for-android

A high-performance bridge for lua and java or c in Android with mutil-thread and almost all java features supported
BSD 3-Clause "New" or "Revised" License
111 stars 26 forks source link

FIX: single char string method call deduct error. #8

Open tiann opened 4 years ago

tiann commented 4 years ago

If i want to call a method with string parameters, such as:

public class DeductTest {
    public static void string(String param) {}
}

and i call it in lua:

Deduct.string("a")

this would throw an NosuchMethodException, because it force single char string to char.

this PR should fix this.