Dmitry Timofeev

Results 100 comments of Dmitry Timofeev

Federico, thank you for sharing your experience! Just to avoid any confusion: are you talking about the _opposite_ use-case -- creating _native_ proxies of Java objects? I think that deserves...

OK, there seem to be the following ways to deal with this in user code: 1. Use the classloader explicitly at each call site where a class is needed. -...

Hi @bkchr , I think I'll be able to get to the code tomorrow. Have you considered the questions above re unloading process? Is there a definite answer?

> If the classloader **that loaded the library** is garbage-collected [...] and JNI_OnUnload is called I might have been unclear, but I assumed that the one that loaded the library...

> I suspect it does not work at the moment, because loadClass and FindClass use different formats of name argument. @bkchr , Assuming you have tested this change and it...

> I just use the com/example/Foo class names and that works. Good, does it work with the default implementation of `find_class`? Or do you still need to use the custom...

I wonder if it shall repeat the validations that are already performed by the VM when you lookup a method id (it seems to correctly, though not very user-friendly, specify...

But they copy [_from_](https://docs.oracle.com/javase/10/docs/specs/jni/functions.html#setprimitivetypearrayregion-routines) the buffer into the Java array, don't they? Or do you suggest using &mut with jbytebuffer?

@m4dc4p , I see, thank you very much for the recommendation and the investigation of this issue. Will check that library and see if it works for us!

though it does not fix the problem