eclipsesource / eclipsesource/J2V8
method overloading support?
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 387
- PR merge metrics
- No merged PRs in 30d
Description
Android Object Binding Sample
``` java
V8Object v8Obj = new V8Object(v8);
v8.add("tv", v8Obj);
v8Obj.registerJavaMethod(tvResult, "setTextSize", "setTextSize", new Class[]{float.class});
v8Obj.registerJavaMethod(tvResult, "setTextSize", "setTextSize", new Class[]{int.class, float.class});
v8Obj.release();
```
``` javascript
tv.setTextSize(50);
```
Caused by: java.lang.IllegalArgumentException: argument type mismatch
at com.eclipsesource.v8.V8.checkArgs(V8.java:800)
at com.eclipsesource.v8.V8.callVoidJavaMethod(V8.java:783)
at com.eclipsesource.v8.V8._executeVoidScript(Native Method)
Please support the method overloading.
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.