Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetMethodID_18)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetMethodID_18  )

Definition at line 40 of file GetMethodID_18.cpp.

{
  GET_JNI_FOR_TEST
  jclass clazz = env->FindClass("Test10");
  jmethodID MethodID = env->GetMethodID(clazz, "Test8_method1", "()V");
  printf("MethodID = %d", MethodID);
  if(clazz == NULL){
      printf("Class is NULL!!!");
  }
  if(MethodID != NULL){
    return TestResult::PASS("GetMethodID for public method from abstract class inherited from interface return correct value");
  }else{
    return TestResult::FAIL("GetMethodID for public method from abstract class inherited from interface return incorrect value");
  }
}

Here is the call graph for this function: