Java Native Interface (JNI) in depth -- Part 25: Calling Methods of a Java Interface in C++

preview_player
Показать описание
In this java tutorial, I discuss how to call abstract methods of Java interfaces, as well as default and static methods of interfaces in C++.
Рекомендации по теме
Комментарии
Автор

It is not valid to hold a jobject or jclass value in a static variable. This is stated clearly in the JNI Specification. These values are only valid for the duration of the JNI method they first appear in. You have to use global or weak global references.

EJPCRSKW