Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetMethodID_29)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetMethodID_29  )

Definition at line 40 of file GetMethodID_29.cpp.

{
  GET_JNI_FOR_TEST

  jclass clazz = env->FindClass("Test4");
  jmethodID MethodID = env->GetMethodID(clazz, "<init>", "(I)V");
  printf("MethodID == %d\n", MethodID);
  if(MethodID != NULL){
     return TestResult::PASS("GetMethodID for private constructor in abstract class return correct value");
  }else{
     return TestResult::FAIL("GetMethodID for private constructor in abstract class return incorrect value");
  }
}

Here is the call graph for this function: