Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_ReleaseStringChars_1)

Function Documentation

JNI_OJIAPITest ( JNIEnv_ReleaseStringChars_1  )

Definition at line 40 of file ReleaseStringChars_1.cpp.

{
  GET_JNI_FOR_TEST

  IMPLEMENT_GetMethodID_METHOD("Test1", "Print_string", "(Ljava/lang/String;)V");
  jchar str_chars[]={'a', 's', 'd', 'f'};

  jstring str = env->NewString(str_chars, 4); 

  jboolean *isCopy;
  const jchar* chars = env->GetStringChars(str, isCopy);
  env->ReleaseStringChars(NULL, NULL);
  return TestResult::PASS("ReleaseStringChars(NULL, NULL) correct");
  

}

Here is the call graph for this function: