Back to index

lightning-sunbird  0.9+nobinonly
GetStaticMethodID_1.cpp File Reference
#include "JNIEnvTests.h"
#include "CallingStaticMethods.h"

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_GetStaticMethodID_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetStaticMethodID_1  )

Definition at line 40 of file GetStaticMethodID_1.cpp.


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

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


Here is the call graph for this function: