Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_GetStaticMethodID_13)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetStaticMethodID_13  )

Definition at line 40 of file GetStaticMethodID_13.cpp.

{
  GET_JNI_FOR_TEST
  IMPLEMENT_GetStaticMethodID_METHOD("Test1", "Test1_public_final_static", "(I)I");
  if(clazz == NULL){
      printf("Class is NULL!!!");
  }
  jint value = env->CallStaticIntMethod(clazz, MethodID, 100);
  printf("value == %d", value);
  if(value == 100){
     return TestResult::PASS("GetStaticMethodID for public static final method from non-abstract class, not inherited return correct value");
  }else{
     return TestResult::FAIL("GetStaticMethodID for public static final method from non-abstract class, not inherited return incorrect value");
  }
}

Here is the call graph for this function: