26 #include <com/sun/star/uno/RuntimeException.hpp>
29 #include <rtl/string.hxx>
30 #include <rtl/strbuf.hxx>
31 #include <rtl/ustrbuf.hxx>
33 #include <uno/lbnames.h>
36 using namespace ::
std;
37 using namespace ::
osl;
49 if (!
m_td.get()->bComplete)
52 "cannot make type complete: "
53 + OUString::unacquired( &
m_td.get()->pTypeName )
63 jni_env->DeleteGlobalRef(
m_type );
73 assert(
m_td.get()->eTypeClass == typelib_TypeClass_INTERFACE );
75 OUString
const & uno_name = OUString::unacquired( &
m_td.get()->pTypeName );
88 arg.l = jo_class.
get();
90 jni, jni->CallStaticObjectMethodA(
91 jni_info->m_class_JNI_proxy,
92 jni_info->m_method_JNI_proxy_get_proxy_ctor, &arg ) );
103 typelib_InterfaceTypeDescription * td =
104 reinterpret_cast< typelib_InterfaceTypeDescription *
>(
107 m_methods.reset(
new jmethodID[ td->nMapFunctionIndexToMemberIndex ]);
108 sal_Int32 nMethodIndex = 0;
109 typelib_TypeDescriptionReference ** ppMembers = td->ppMembers;
110 sal_Int32 nMembers = td->nMembers;
116 OStringBuffer sig_buf( 64 );
118 if (member_td.
get()->eTypeClass ==
119 typelib_TypeClass_INTERFACE_METHOD)
121 typelib_InterfaceMethodTypeDescription * method_td =
123 typelib_InterfaceMethodTypeDescription *
>(
126 sig_buf.append(
'(' );
127 for ( sal_Int32
i = 0;
i < method_td->nParams; ++
i )
129 typelib_MethodParameter
const & param =
130 method_td->pParams[
i ];
132 sig_buf.append(
'[' );
135 sig_buf.append(
')' );
138 OString method_signature( sig_buf.makeStringAndClear() );
141 &method_td->aBase.pMemberName ),
142 RTL_TEXTENCODING_JAVA_UTF8 ) );
144 m_methods[ nMethodIndex ] = jni->GetMethodID(
145 static_cast<jclass>(jo_class.
get()), method_name.getStr(),
146 method_signature.getStr() );
154 member_td.
get()->eTypeClass ==
155 typelib_TypeClass_INTERFACE_ATTRIBUTE );
156 typelib_InterfaceAttributeTypeDescription * attribute_td =
158 typelib_InterfaceAttributeTypeDescription *
>(
163 &sig_buf, attribute_td->pAttributeTypeRef );
164 OString type_sig( sig_buf.makeStringAndClear() );
165 sig_buf.ensureCapacity( 64 );
167 OUString
const & member_name =
168 OUString::unacquired(
169 &attribute_td->aBase.pMemberName );
172 sig_buf.append(
"()" );
173 sig_buf.append( type_sig );
174 OString method_signature( sig_buf.makeStringAndClear() );
175 OUStringBuffer name_buf( 3 + member_name.getLength() );
176 name_buf.append(
"get" );
177 name_buf.append( member_name );
180 name_buf.makeStringAndClear(),
181 RTL_TEXTENCODING_JAVA_UTF8 ) );
182 m_methods[ nMethodIndex ] = jni->GetMethodID(
183 static_cast<jclass>(jo_class.
get()), method_name.getStr(),
184 method_signature.getStr() );
188 if (! attribute_td->bReadOnly)
191 sig_buf.ensureCapacity( 64 );
192 sig_buf.append(
'(' );
193 sig_buf.append( type_sig );
194 sig_buf.append(
")V" );
195 method_signature = sig_buf.makeStringAndClear();
196 name_buf.ensureCapacity( 3 + member_name.getLength() );
197 name_buf.append(
"set" );
198 name_buf.append( member_name );
200 name_buf.makeStringAndClear(),
201 RTL_TEXTENCODING_JAVA_UTF8 );
202 m_methods[ nMethodIndex ] = jni->GetMethodID(
203 static_cast<jclass>(jo_class.
get()), method_name.getStr(),
204 method_signature.getStr() );
206 assert( m_methods[ nMethodIndex ] !=
nullptr );
218 m_class =
static_cast<jclass
>(jni->NewGlobalRef( jo_class.
get() ));
219 m_type = jni->NewGlobalRef( jo_type.get() );
220 m_proxy_ctor = jni->NewGlobalRef( jo_proxy_ctor.get() );
235 m_exc_ctor( nullptr )
237 assert(
m_td.get()->eTypeClass == typelib_TypeClass_STRUCT ||
238 m_td.get()->eTypeClass == typelib_TypeClass_EXCEPTION );
239 typelib_CompoundTypeDescription * td =
240 reinterpret_cast< typelib_CompoundTypeDescription *
>(
m_td.get() );
242 OUString
const & uno_name =
243 OUString::unacquired( &td->aBase.pTypeName );
247 sal_Int32
i = uno_name.indexOf(
'<' );
251 nucleus = uno_name.copy( 0, i );
258 nucleus, RTL_TEXTENCODING_JAVA_UTF8 ).getStr() ) );
262 if (
m_td.get()->eTypeClass == typelib_TypeClass_EXCEPTION)
266 static_cast<jclass>(jo_class.
get()),
"<init>",
"(Ljava/lang/String;)V" );
277 : reinterpret_cast< typelib_TypeDescription * >(
278 td->pBaseTypeDescription );
295 static_cast<jclass>(jo_class.
get()),
"Context",
"Ljava/lang/Object;" );
302 sal_Int32 nMembers = td->nMembers;
303 m_fields.reset(
new jfieldID[ nMembers ]);
308 if (td->aBase.eTypeClass == typelib_TypeClass_STRUCT
309 && reinterpret_cast< typelib_StructTypeDescription * >(
310 td)->pParameterizedTypes !=
nullptr
311 && reinterpret_cast< typelib_StructTypeDescription * >(
312 td)->pParameterizedTypes[
nPos])
314 sig = OString(
"Ljava/lang/Object;" );
316 OStringBuffer sig_buf( 32 );
318 sig = sig_buf.makeStringAndClear();
323 OUString::unacquired( &td->ppMemberNames[ nPos ] ),
324 RTL_TEXTENCODING_JAVA_UTF8 ) );
327 static_cast<jclass>(jo_class.
get()), member_name.getStr(),
340 m_class =
static_cast<jclass
>(jni->NewGlobalRef( jo_class.
get() ));
347 OUString
const & uno_name = OUString::unacquired( &td->pTypeName );
350 switch (td->eTypeClass)
352 case typelib_TypeClass_STRUCT:
353 case typelib_TypeClass_EXCEPTION:
358 case typelib_TypeClass_INTERFACE:
372 ClearableMutexGuard guard(
m_mutex );
374 if (holder.
m_info ==
nullptr)
398 OUString
const & uno_name = OUString::unacquired( &td->pTypeName );
400 ClearableMutexGuard guard(
m_mutex );
402 t_str2type::const_iterator iFind(
m_type_map.find( uno_name ) );
410 info = iFind->second.m_info;
418 JNI_context const & jni, typelib_TypeDescriptionReference * type )
const
425 OUString
const & uno_name = OUString::unacquired( &type->pTypeName );
427 ClearableMutexGuard guard(
m_mutex );
428 t_str2type::const_iterator iFind(
m_type_map.find( uno_name ) );
437 info = iFind->second.m_info;
445 JNI_context const & jni, OUString
const & uno_name )
const
447 if ( uno_name ==
"com.sun.star.uno.XInterface" )
453 ClearableMutexGuard guard(
m_mutex );
454 t_str2type::const_iterator iFind(
m_type_map.find( uno_name ) );
458 css::uno::TypeDescription td( uno_name );
468 info = iFind->second.m_info;
476 JNIEnv * jni_env, jobject class_loader, jclass classClass,
477 jmethodID methodForName )
478 : m_class_Class( classClass ),
479 m_method_Class_forName( methodForName ),
480 m_class_JNI_proxy( nullptr ),
481 m_XInterface_queryInterface_td(
482 (reinterpret_cast< typelib_InterfaceTypeDescription * >(
483 css::
uno::TypeDescription(
485 .
get())->ppMembers[ 0 ] ) ),
489 m_XInterface_type_info( nullptr )
499 jni,
find_class( jni,
"java.lang.Throwable" ) );
501 jni,
find_class( jni,
"java.lang.Character" ) );
503 jni,
find_class( jni,
"java.lang.Boolean" ) );
509 jni,
find_class( jni,
"java.lang.Integer" ) );
519 jni,
find_class( jni,
"com.sun.star.uno.RuntimeException" ) );
521 jni,
find_class( jni,
"com.sun.star.uno.UnoRuntime" ) );
523 jni,
find_class( jni,
"com.sun.star.uno.Any" ) );
525 jni,
find_class( jni,
"com.sun.star.uno.Enum" ) );
527 jni,
find_class( jni,
"com.sun.star.uno.Type" ) );
529 jni,
find_class( jni,
"com.sun.star.uno.TypeClass" ) );
531 jni,
find_class( jni,
"com.sun.star.uno.IEnvironment" ) );
533 jni,
find_class( jni,
"com.sun.star.bridges.jni_uno.JNI_proxy" ) );
535 jni,
find_class( jni,
"com.sun.star.lib.util.AsynchronousFinalizer" ) );
539 static_cast<jclass>(jo_Object.
get()),
"toString",
"()Ljava/lang/String;" );
544 static_cast<jclass>(jo_Class.
get()),
"getName",
"()Ljava/lang/String;" );
550 static_cast<jclass>(jo_Throwable.
get()),
"getMessage",
"()Ljava/lang/String;" );
556 static_cast<jclass>(jo_Character.
get()),
"charValue",
"()C" );
561 static_cast<jclass>(jo_Boolean.
get()),
"booleanValue",
"()Z" );
566 static_cast<jclass>(jo_Byte.
get()),
"byteValue",
"()B" );
571 static_cast<jclass>(jo_Short.
get()),
"shortValue",
"()S" );
576 static_cast<jclass>(jo_Integer.
get()),
"intValue",
"()I" );
581 static_cast<jclass>(jo_Long.
get()),
"longValue",
"()J" );
586 static_cast<jclass>(jo_Float.
get()),
"floatValue",
"()F" );
591 static_cast<jclass>(jo_Double.
get()),
"doubleValue",
"()D" );
597 static_cast<jclass>(jo_Character.
get()),
"<init>",
"(C)V" );
602 static_cast<jclass>(jo_Boolean.
get()),
"<init>",
"(Z)V" );
607 static_cast<jclass>(jo_Byte.
get()),
"<init>",
"(B)V" );
612 static_cast<jclass>(jo_Short.
get()),
"<init>",
"(S)V" );
617 static_cast<jclass>(jo_Integer.
get()),
"<init>",
"(I)V" );
622 static_cast<jclass>(jo_Long.
get()),
"<init>",
"(J)V" );
627 static_cast<jclass>(jo_Float.
get()),
"<init>",
"(F)V" );
632 static_cast<jclass>(jo_Double.
get()),
"<init>",
"(D)V" );
638 static_cast<jclass>(jo_UnoRuntime.
get()),
639 "generateOid",
"(Ljava/lang/Object;)Ljava/lang/String;" );
644 static_cast<jclass>(jo_UnoRuntime.
get()),
646 "(Lcom/sun/star/uno/Type;Ljava/lang/Object;)Ljava/lang/Object;" );
652 static_cast<jclass>(jo_Enum.
get()),
"m_value",
"I" );
658 static_cast<jclass>(jo_TypeClass.
get()),
659 "fromInt",
"(I)Lcom/sun/star/uno/TypeClass;" );
665 static_cast<jclass>(jo_Type.
get()),
"<init>",
"(Ljava/lang/Class;)V" );
670 static_cast<jclass>(jo_Type.
get()),
671 "<init>",
"(Ljava/lang/String;Lcom/sun/star/uno/TypeClass;)V" );
676 static_cast<jclass>(jo_Type.
get()),
"_typeName",
"Ljava/lang/String;" );
682 static_cast<jclass>(jo_Any.
get()),
683 "<init>",
"(Lcom/sun/star/uno/Type;Ljava/lang/Object;)V" );
689 static_cast<jclass>(jo_Any.
get()),
"_type",
"Lcom/sun/star/uno/Type;" );
694 static_cast<jclass>(jo_Any.
get()),
"_object",
"Ljava/lang/Object;" );
700 static_cast<jclass>(jo_IEnvironment.
get()),
701 "getRegisteredInterface",
702 "(Ljava/lang/String;Lcom/sun/star/uno/Type;)Ljava/lang/Object;" );
707 static_cast<jclass>(jo_IEnvironment.
get()),
"registerInterface",
708 "(Ljava/lang/Object;[Ljava/lang/String;Lcom/sun/star/uno/Type;)"
709 "Ljava/lang/Object;" );
715 static_cast<jclass>(jo_JNI_proxy.
get()),
"get_proxy_ctor",
716 "(Ljava/lang/Class;)Ljava/lang/reflect/Constructor;" );
721 static_cast<jclass>(jo_JNI_proxy.
get()),
"create",
722 "(JLcom/sun/star/uno/IEnvironment;JJLcom/sun/star/uno/Type;Ljava/lang"
723 "/String;Ljava/lang/reflect/Constructor;"
724 "Lcom/sun/star/lib/util/AsynchronousFinalizer;)Ljava/lang/Object;" );
729 static_cast<jclass>(jo_JNI_proxy.
get()),
"m_receiver_handle",
"J" );
734 static_cast<jclass>(jo_JNI_proxy.
get()),
"m_td_handle",
"J" );
739 static_cast<jclass>(jo_JNI_proxy.
get()),
"m_type",
"Lcom/sun/star/uno/Type;" );
744 static_cast<jclass>(jo_JNI_proxy.
get()),
"m_oid",
"Ljava/lang/String;" );
750 static_cast<jclass>(jo_AsynchronousFinalizer.
get()),
"<init>",
"()V" );
755 static_cast<jclass>(jo_AsynchronousFinalizer.
get()),
"drain",
"()V" );
760 OUString java_env_type_name( UNO_LB_JAVA );
764 args[ 0 ].l = jo_java.
get();
765 args[ 1 ].l =
nullptr;
766 jmethodID method_getEnvironment = jni->GetStaticMethodID(
767 static_cast<jclass>(jo_UnoRuntime.
get()),
"getEnvironment",
768 "(Ljava/lang/String;Ljava/lang/Object;)"
769 "Lcom/sun/star/uno/IEnvironment;" );
771 assert( method_getEnvironment !=
nullptr );
773 jni, jni->CallStaticObjectMethodA(
774 static_cast<jclass>(jo_UnoRuntime.
get()), method_getEnvironment, args ) );
777 jfieldID field_Any_VOID = jni->GetStaticFieldID(
778 static_cast<jclass>(jo_Any.
get()),
"VOID",
"Lcom/sun/star/uno/Any;" );
780 assert( field_Any_VOID !=
nullptr );
782 jni, jni->GetStaticObjectField(
783 static_cast<jclass>(jo_Any.
get()), field_Any_VOID ) );
785 jfieldID field_Type_UNSIGNED_SHORT = jni->GetStaticFieldID(
786 static_cast<jclass>(jo_Type.
get()),
"UNSIGNED_SHORT",
"Lcom/sun/star/uno/Type;" );
788 assert( field_Type_UNSIGNED_SHORT !=
nullptr );
790 jni, jni->GetStaticObjectField(
791 static_cast<jclass>(jo_Type.
get()), field_Type_UNSIGNED_SHORT ) );
793 jfieldID field_Type_UNSIGNED_LONG = jni->GetStaticFieldID(
794 static_cast<jclass>(jo_Type.
get()),
"UNSIGNED_LONG",
"Lcom/sun/star/uno/Type;" );
796 assert( field_Type_UNSIGNED_LONG !=
nullptr );
798 jni, jni->GetStaticObjectField(
799 static_cast<jclass>(jo_Type.
get()), field_Type_UNSIGNED_LONG ) );
801 jfieldID field_Type_UNSIGNED_HYPER = jni->GetStaticFieldID(
802 static_cast<jclass>(jo_Type.
get()),
"UNSIGNED_HYPER",
"Lcom/sun/star/uno/Type;" );
804 assert( field_Type_UNSIGNED_HYPER !=
nullptr );
806 jni, jni->GetStaticObjectField(
807 static_cast<jclass>(jo_Type.
get()), field_Type_UNSIGNED_HYPER ) );
811 static_cast<jclass
>(jni->NewGlobalRef( jo_UnoRuntime.
get() ));
813 static_cast<jclass
>(jni->NewGlobalRef( jo_RuntimeException.
get() ));
815 static_cast<jclass
>(jni->NewGlobalRef( jo_Any.
get() ));
817 static_cast<jclass
>(jni->NewGlobalRef( jo_Type.
get() ));
819 static_cast<jclass
>(jni->NewGlobalRef( jo_TypeClass.
get() ));
821 static_cast<jclass
>(jni->NewGlobalRef( jo_JNI_proxy.
get() ));
823 static_cast<jclass
>(jni->NewGlobalRef( jo_AsynchronousFinalizer.
get() ));
826 static_cast<jclass
>(jni->NewGlobalRef( jo_Character.
get() ));
828 static_cast<jclass
>(jni->NewGlobalRef( jo_Boolean.
get() ));
830 static_cast<jclass
>(jni->NewGlobalRef( jo_Byte.
get() ));
832 static_cast<jclass
>(jni->NewGlobalRef( jo_Short.
get() ));
834 static_cast<jclass
>(jni->NewGlobalRef( jo_Integer.
get() ));
836 static_cast<jclass
>(jni->NewGlobalRef( jo_Long.
get() ));
838 static_cast<jclass
>(jni->NewGlobalRef( jo_Float.
get() ));
840 static_cast<jclass
>(jni->NewGlobalRef( jo_Double.
get() ));
842 static_cast<jclass
>(jni->NewGlobalRef( jo_String.
get() ));
844 static_cast<jclass
>(jni->NewGlobalRef( jo_Object.
get() ));
849 jni->NewGlobalRef( jo_Any_VOID.get() );
851 jni->NewGlobalRef( jo_Type_UNSIGNED_SHORT.get() );
853 jni->NewGlobalRef( jo_Type_UNSIGNED_LONG.get() );
855 jni->NewGlobalRef( jo_Type_UNSIGNED_HYPER.get() );
860 css::uno::TypeDescription XInterface_td(
878 i.second.m_info->destroy( jni_env );
920 uno_vm->getVirtualMachine() );
921 JNIEnv * jni_env = guard.getEnvironment();
923 nullptr, jni_env, static_cast< jobject >(uno_vm->getClassLoader()) );
926 jmethodID jo_forName;
932 "com.sun.star.bridges.jni_uno.JNI_info_holder", jo_class,
933 jo_forName,
false ) );
935 jfieldID field_s_jni_info_handle =
936 jni->GetStaticFieldID(
937 static_cast<jclass>(jo_JNI_info_holder.get()),
"s_jni_info_handle",
"J" );
939 assert( field_s_jni_info_handle !=
nullptr );
942 reinterpret_cast< JNI_info const *
>(
943 jni->GetStaticLongField(
944 static_cast<jclass>(jo_JNI_info_holder.get()), field_s_jni_info_handle ) );
945 if (jni_info ==
nullptr)
948 jni_env, static_cast< jobject >(uno_vm->getClassLoader()), jo_class,
951 ClearableMutexGuard g( Mutex::getGlobalMutex() );
953 reinterpret_cast< JNI_info const *
>(
954 jni->GetStaticLongField(
955 static_cast<jclass>(jo_JNI_info_holder.get()),
956 field_s_jni_info_handle ) );
957 if (jni_info ==
nullptr)
959 jni->SetStaticLongField(
960 static_cast<jclass>(jo_JNI_info_holder.get()), field_s_jni_info_handle,
961 reinterpret_cast< jlong >( new_info ) );
982 JNIEnv * jni_env, SAL_UNUSED_PARAMETER jobject, jlong jni_info_handle )
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
jmethodID m_method_Object_toString
jobject m_object_Type_UNSIGNED_LONG
jmethodID m_method_Double_doubleValue
jstring ustring_to_jstring(JNI_context const &jni, rtl_uString const *ustr)
jmethodID m_ctor_Any_with_Type_Object
::com::sun::star::uno::Type const & m_Exception_type
JNI_compound_type_info(JNI_context const &jni, typelib_TypeDescription *td)
mutable::osl::Mutex m_mutex
jfieldID m_field_JNI_proxy_m_receiver_handle
jobject m_object_Type_UNSIGNED_HYPER
jclass m_class_AsynchronousFinalizer
jclass m_class_UnoRuntime
jobject create_type(JNI_context const &jni, jclass clazz)
JNIEnv * get_jni_env() const
virtual void destroy(JNIEnv *jni_env) override
jobject m_object_Any_VOID
JNI_info const * get_info() const
jmethodID m_ctor_AsynchronousFinalizer
JNI_type_info const * create_type_info(JNI_context const &jni, typelib_TypeDescription *td) const
jmethodID m_ctor_Long_with_long
jmethodID m_method_UnoRuntime_generateOid
static void append_sig(OStringBuffer *buf, typelib_TypeDescriptionReference *type, bool use_Object_for_type_XInterface=true, bool use_slashes=true)
jmethodID m_method_Boolean_booleanValue
#define SAL_THROW_EXTERN_C()
jmethodID m_ctor_Float_with_float
jmethodID m_method_TypeClass_fromInt
std::unique_ptr< jmethodID[]> m_methods
jmethodID m_ctor_Character_with_char
OUString get_stack_trace(jobject jo_exc=nullptr) const
jmethodID m_method_Byte_byteValue
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
jmethodID m_ctor_Double_with_double
jmethodID m_ctor_Type_with_Class
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
std::unique_ptr< jfieldID[]> m_fields
jmethodID m_method_JNI_proxy_create
void ensure_no_exception() const
jfieldID m_field_JNI_proxy_m_type
JNI_interface_type_info(JNI_context const &jni, typelib_TypeDescription *td)
jfieldID m_field_Any_object
jfieldID m_field_Type_typeName
void destroy(JNIEnv *jni_env)
JNI_type_info(const JNI_type_info &)=delete
jfieldID m_field_JNI_proxy_m_td_handle
jmethodID m_method_IEnvironment_getRegisteredInterface
jobject m_object_java_env
jmethodID m_ctor_Short_with_short
JNI_interface_type_info const * m_XInterface_type_info
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1info_1holder_finalize__J(JNIEnv *jni_env, SAL_UNUSED_PARAMETER jobject, jlong jni_info_handle) SAL_THROW_EXTERN_C()
jclass findClass(char const *name, jclass classClass, jmethodID methodForName, bool inException) const
jfieldID m_field_Any_type
jmethodID m_ctor_Byte_with_byte
jmethodID m_ctor_Type_with_Name_TypeClass
jmethodID m_method_Long_longValue
struct _typelib_TypeDescription typelib_TypeDescription
JNI_type_info const * get_type_info(JNI_context const &jni, typelib_TypeDescription *type) const
::com::sun::star::uno::TypeDescription m_td
void destruct(JNIEnv *jni_env)
jmethodID m_method_Float_floatValue
jclass m_class_RuntimeException
jmethodID m_method_Character_charValue
jmethodID m_method_UnoRuntime_queryInterface
friend friend class AttachGuard
::com::sun::star::uno::Type const & m_RuntimeException_type
jmethodID m_method_IEnvironment_registerInterface
jmethodID m_method_Integer_intValue
jfieldID m_field_Enum_m_value
typelib_TypeDescription * get() const
virtual void destroy(JNIEnv *jni_env) override
static JNI_info const * get_jni_info(rtl::Reference< jvmaccess::UnoVirtualMachine > const &uno_vm)
void getClassForName(jclass *classClass, jmethodID *methodForName) const
jmethodID m_method_AsynchronousFinalizer_drain
jmethodID m_ctor_Integer_with_int
jmethodID m_method_Class_getName
jobject m_object_Type_UNSIGNED_SHORT
jmethodID m_ctor_Boolean_with_boolean
bool type_equals(typelib_TypeDescriptionReference *type1, typelib_TypeDescriptionReference *type2)
bool is_XInterface(typelib_TypeDescriptionReference *type)
JNI_info(const JNI_info &)=delete
jmethodID m_method_Short_shortValue
jmethodID m_method_JNI_proxy_get_proxy_ctor
JNI_type_info const * m_base
void destruct(JNIEnv *jni_env)
jfieldID m_field_JNI_proxy_m_oid
virtual void destroy(JNIEnv *jni_env)=0
jclass find_class(JNI_context const &jni, char const *class_name, bool inException=false)
jmethodID m_method_Throwable_getMessage