private static void SetObjectArrayElement(JNIEnvironment env,int arrayJREF,int index,int objectJREF){
  if (traceJNI)   VM.sysWrite("JNI called: SetObjectArrayElement  \n");
  RuntimeEntrypoints.checkJNICountDownToGC();
  try {
    Object[] sourceArray=(Object[])env.getJNIRef(arrayJREF);
    Object elem=env.getJNIRef(objectJREF);
    sourceArray[index]=elem;
  }
 catch (  Throwable e) {
    env.recordException(e);
  }
}

private static void SetObjectArrayElement ( JNIEnvironment env , int arrayJREF , int index , int objectJREF ) { if ( traceJNI ) VM . sysWrite ( "JNI called: SetObjectArrayElement  \n" ) ; RuntimeEntrypoints . checkJNICountDownToGC ( ) ; try { Object [ ] sourceArray = ( Object [ ] ) env . getJNIRef ( arrayJREF ) ; Object elem = env . getJNIRef ( objectJREF ) ; sourceArray [ index ] = elem ; } catch ( Throwable e ) { env . recordException ( e ) ; } }
setobjectarrayelement : store an object into an object array
