Lines Matching defs:version
77 static bool IsBadJniVersion(int version) {
79 return version != JNI_VERSION_1_2 && version != JNI_VERSION_1_4 && version != JNI_VERSION_1_6;
331 if (IsBadJniVersion(args->version)) {
332 LOG(ERROR) << "Bad JNI version passed to "
334 << args->version;
3016 if (IsBadJniVersion(args->version)) {
3017 LOG(ERROR) << "Bad JNI version passed to CreateJavaVM: " << args->version;
3087 static jint GetEnv(JavaVM* vm, void** env, jint version) {
3088 // GetEnv always returns a JNIEnv* for the most current supported JNI version,
3089 // and unlike other calls that take a JNI version doesn't care if you supply
3091 if (IsBadJniVersion(version) && version != JNI_VERSION_1_1) {
3092 LOG(ERROR) << "Bad JNI version passed to GetEnv: " << version;
3339 int version = 0;
3343 version = (*jni_on_load)(this, nullptr);
3351 if (version == JNI_ERR) {
3353 } else if (IsBadJniVersion(version)) {
3354 StringAppendF(detail, "Bad JNI version returned from JNI_OnLoad in \"%s\": %d",
3355 path.c_str(), version);