private static int GetSuperclass(JNIEnvironment env,int classJREF){
  if (traceJNI)   VM.sysWrite("JNI called: GetSuperclass  \n");
  RuntimeEntrypoints.checkJNICountDownToGC();
  try {
    Class<?> cls=(Class<?>)env.getJNIRef(classJREF);
    Class<?> supercls=cls.getSuperclass();
    return supercls == null ? 0 : env.pushJNIRef(supercls);
  }
 catch (  Throwable unexpected) {
    if (traceJNI)     unexpected.printStackTrace(System.err);
    env.recordException(unexpected);
    return 0;
  }
}

private static int GetSuperclass ( JNIEnvironment env , int classJREF ) { if ( traceJNI ) VM . sysWrite ( "JNI called: GetSuperclass  \n" ) ; RuntimeEntrypoints . checkJNICountDownToGC ( ) ; try { Class < ? > cls = ( Class < ? > ) env . getJNIRef ( classJREF ) ; Class < ? > supercls = cls . getSuperclass ( ) ; return supercls == null ? 0 : env . pushJNIRef ( supercls ) ; } catch ( Throwable unexpected ) { if ( traceJNI ) unexpected . printStackTrace ( System . err ) ; env . recordException ( unexpected ) ; return 0 ; } }
getsuperclass : find the superclass given a class
