Back to index

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

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_GetMethodID_16)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetMethodID_16  )

Definition at line 40 of file GetMethodID_16.cpp.

  jclass clazz = env->FindClass("Test3");
  if(clazz == NULL){
      printf("Class is NULL!!!");
      return TestResult::FAIL("GetMethodID: class not found");
  jmethodID methodID = env->GetMethodID(clazz, "Test_method", "()V");
  if(methodID != NULL){
     return TestResult::PASS("GetMethodID for public method from interface return correct value (0)");
     return TestResult::FAIL("GetMethodID for public method from interface return incorrect value (non-0)");


Here is the call graph for this function: