Back to index

lightning-sunbird  0.9+nobinonly
GetFieldID_18.cpp File Reference
#include "JNIEnvTests.h"
#include "AccessingFields.h"

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_GetFieldID_18)

Function Documentation

JNI_OJIAPITest ( JNIEnv_GetFieldID_18  )

Definition at line 40 of file GetFieldID_18.cpp.


  IMPLEMENT_GetFieldID_METHOD("Test1", "int_field", "I");
  env->SetIntField(obj, fieldID, 10);
  jint value = env->GetIntField(obj, fieldID);
  if((fieldID != NULL) &&((int)value == 10)){
    return TestResult::FAIL("GetFieldID(all right for private int) failed");
    return TestResult::PASS("GetFieldID(all right for private int) passed");


Here is the call graph for this function: