Back to index

lightning-sunbird  0.9+nobinonly
IsAssignableFrom_3.cpp File Reference
#include "JNIEnvTests.h"
#include "ClassOperation.h"

Go to the source code of this file.


 JNI_OJIAPITest (JNIEnv_IsAssignableFrom_3)

Function Documentation

JNI_OJIAPITest ( JNIEnv_IsAssignableFrom_3  )

Definition at line 40 of file IsAssignableFrom_3.cpp.


  jclass clazz  = env->FindClass("Test1");
  jclass clazz1 = env->GetSuperclass(clazz);

  if(env->IsAssignableFrom(clazz1, clazz) ){
      return TestResult::FAIL("IsAssignableFrom(class, is not superclass of class) return incorrect value");
      return TestResult::PASS("IsAssignableFrom(class, is not superclass of class) return correct value");


Here is the call graph for this function: