Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetMethodID_17)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetMethodID_17  )

Definition at line 40 of file GetMethodID_17.cpp.

{
  GET_JNI_FOR_TEST
  IMPLEMENT_GetMethodID_METHOD("Test1", "Test2_override", "(I)I");
  if(clazz == NULL){
      printf("Class is NULL!!!");
  }
  jint value = env->CallIntMethod(obj, MethodID, 100);
  printf("value == %d", value);
  if(value == 101){
     return TestResult::PASS("GetMethodID for public overrided method from non-abstract class, not inherited return correct value");
  }else{
     return TestResult::FAIL("GetMethodID for public overrided method from non-abstract class, not inherited return incorrect value");
  }
}

Here is the call graph for this function: