Replies: 2 comments 12 replies
-
Thank you for raising this feature. I intended to leave that to Javet users for 2 major reasons:
As you've met, I think it's almost impossible to achieve that without support at JNI level. I'll consider doing some experiments. Of course, that takes some time. |
Beta Was this translation helpful? Give feedback.
11 replies
-
Now, it's included in v0.9.6. Enjoy. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'd like to propose a suggestion! I know Javet has support for Interception, but coming from previously using GraalJS, being able to interop with any java object is just very, very convenient. Perhaps Javet could implement such a converter (I've attempted to but had some problems) which converts any Java object to a V8 object.
My idea of how this could work is like so:
You take some Java object, use Reflection to extract all of its methods, and you make the V8 object have those methods too. Then, in JS, when I call
javaObject.meth(1)
, it's going to get the actual Java object and call that method.I think this would be really useful since it would allow for even more easily interoping between JS and Java.
Beta Was this translation helpful? Give feedback.
All reactions