Back to index

lightning-sunbird  0.9+nobinonly
Functions
GetMethodID_21.cpp File Reference
#include "JNIEnvTests.h"
#include "CallingInstanceMethods.h"

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetMethodID_21)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetMethodID_21  )

Definition at line 40 of file GetMethodID_21.cpp.

{
  GET_JNI_FOR_TEST
  jclass clazz = env->FindClass("Test4");
  jmethodID MethodID = env->GetMethodID(clazz, "Abs_nomod_abstract_int", "(I)I");
  printf("MethodID = %d", MethodID);
  if(clazz == NULL){
      printf("Class is NULL!!!");
  }
  if(MethodID!=NULL){
    return TestResult::PASS("GetMethodID for no-modifier abstract method from abstract class return correct value");
  }else{
    return TestResult::FAIL("GetMethodID for no-modifier abstract method from abstract class return incorrect value");
  }
}

Here is the call graph for this function: