#140 JNI interaction no longer works in application code (patch)

alpha 4
closed
nobody
None
2012-08-28
2012-01-08
No

The Java redesign broke the ability of users' Java and C++ code to interact via JNI. This is due to using two separate class loaders.

I made and tested the necessary changes to work around this issue. With this patch, all JNI interaction will work AS BEFORE. If it worked before alpha3, it should work now. This also preserves all the aspects of the Java redesign.

For more information, see https://groups.google.com/d/topic/necessitas-devel/hbNkOj5wwSo/discussion . The most significant change is that it moves qtmain_android.cpp to its own .so file, which must be loaded at application start, instead of linking it in with the application library. Qt Creator deals nicely with this, but I don't know about Ministro and how it should deal with pre- and post-patch versions of the library.

1 Attachments

Discussion

  • BogDan Vatra

    BogDan Vatra - 2012-05-16
    • status: open --> pending
     
  • BogDan Vatra

    BogDan Vatra - 2012-08-28
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks