Back to index

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

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_GetMethodID_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetMethodID_1  )

Definition at line 40 of file GetMethodID_1.cpp.


  jmethodID MethodID = env->GetMethodID(NULL, "Print_string", "(Ljava/lang/String;)V");
  printf("ID of method = %d\n",  (int)MethodID); 

  if(MethodID == NULL){
     return TestResult::PASS("GetMethodID with class == NULL return 0, its correct");
     return TestResult::FAIL("GetMethodID with class == NULL doesnt return 0, its incorrect");


Here is the call graph for this function: