Beispiel #1
0
jint rvmCallIntClassMethodA(Env* env, Class* clazz, Method* method, jvalue* args) {
    CallInfo* callInfo = INIT_CALL_INFO(env, NULL, method, FALSE, args);
    if (!callInfo) return 0;
    rvmInitialize(env, method->clazz);
    if (rvmExceptionOccurred(env)) return 0;
    return callIntMethod(env, callInfo);
}
Beispiel #2
0
jint rvmCallIntInstanceMethodA(Env* env, Object* obj, Method* method, jvalue* args) {
    CallInfo* callInfo = INIT_CALL_INFO(env, obj, method, TRUE, args);
    if (!callInfo) return 0;
    if (obj && CLASS_IS_PROXY(obj->clazz)) {
        env->reserved0 = (void*) method->name;
        env->reserved1 = (void*) method->desc;
    }
    return callIntMethod(env, callInfo);
}
jint JNIMethod::callIntMethod( jobject instance, ... )
{
	jint result = NULL;

	va_list args;
	va_start( args, instance );
	result = callIntMethod( instance, args );
	va_end( args );

	return result;
}