jniCheck.cpp revision 0
0N/A# include "incls/_jniCheck.cpp.incl"
0N/A#define ASSERT_OOPS_ALLOWED \
0N/Astatic const char * warn_bad_class_descriptor = "JNI FindClass received a bad class descriptor \"%s\". A correct class descriptor " \
0N/A "has no leading \"L\" or trailing \";\". Incorrect descriptors will not be accepted in future releases.";
0N/Astatic const char * fatal_using_jnienv_in_nonjava = "FATAL ERROR in native method: Using JNIEnv in non-Java thread";
0N/Astatic const char * warn_other_function_in_critical = "Warning: Calling other JNI functions in the scope of " \
0N/Astatic const char * fatal_class_not_a_class = "JNI received a class argument that is not a class";
0N/Astatic const char * fatal_class_not_a_throwable_class = "JNI Throw or ThrowNew received a class argument that is not a Throwable or Throwable subclass";
0N/Astatic const char * fatal_wrong_class_or_method = "Wrong object class or methodID passed to JNI call";
0N/Astatic const char * fatal_unknown_array_object = "Unknown array object passed to JNI array operations";
0N/Astatic const char * fatal_object_array_expected = "Object array expected but not received for JNI array operation";
0N/Astatic const char * fatal_static_field_not_found = "Static field not found in JNI get/set field operations";
0N/Astatic const char * fatal_static_field_mismatch = "Field type (static) mismatch in JNI get/set field operations";
0N/Astatic const char * fatal_instance_field_not_found = "Instance field not found in JNI get/set field operations";
0N/Astatic const char * fatal_instance_field_mismatch = "Field type (instance) mismatch in JNI get/set field operations";
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void, \
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void, \
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(const char *,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void, \
0N/AJNI_ENTRY_CHECKED(void, \
0N/AJNI_ENTRY_CHECKED(void, \
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void *,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void,
0N/AJNI_ENTRY_CHECKED(void *,
0N/A sizeof(*unchecked_jni_NativeInterface) - sizeof(char *));)
0N/A if (PrintJNIResolving) {
0N/A return &checked_jni_NativeInterface;