Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_ExceptionDescribe_2)

Function Documentation

JNI_OJIAPITest ( JNIEnv_ExceptionDescribe_2  )

Definition at line 40 of file ExceptionDescribe_2.cpp.

{
  GET_JNI_FOR_TEST

  jclass clazz = env->FindClass("Ljava/lang/ArrayIndexOutOfBoundsException;");
  jthrowable obj = (jthrowable)env->AllocObject(clazz);
  //jint res = env->Throw(obj);
  env->ExceptionDescribe();
  return TestResult::PASS("ExceptionDescribe(no exception being thrown) is correct");
}

Here is the call graph for this function: