Back to index

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

Go to the source code of this file.

Functions

 JNI_OJIAPITest (JNIEnv_AllocObject_4)

Function Documentation

JNI_OJIAPITest ( JNIEnv_AllocObject_4  )

Definition at line 40 of file AllocObject_4.cpp.

{
  GET_JNI_FOR_TEST

  jclass clazz  = env->FindClass("Test3");
  jobject obj = env->AllocObject(clazz);
  if(obj==NULL){
      printf("its allright!\n"); return TestResult::PASS("AllocObject(interface) return correct value - NULL");
  }else{
      return TestResult::FAIL("AllocObject(abstract class) return incorrect value");
  }
}

Here is the call graph for this function: