pr23739.c 380 B

12345678910111213
  1. #include <stdio.h>
  2. #include "pr23739.h"
  3. JNIEXPORT void JNICALL
  4. Java_pr23739_checkOrder (JNIEnv *env, jclass cls, jclass clazz1, jclass clazz2)
  5. {
  6. printf ("B extends A\n");
  7. printf ("isAssignableFrom (A, B): %d\n",
  8. (*env)->IsAssignableFrom (env, clazz1, clazz2));
  9. printf ("isAssignableFrom (B, A): %d\n",
  10. (*env)->IsAssignableFrom (env, clazz2, clazz1));
  11. }