if (traceJNI) VM.sysWrite("GetDirectBufferCapacity not supported yet\n"); return -1;
try { Buffer buffer = (Buffer)env.getJNIRef(bufJREF); return buffer.capacity(); } catch (Throwable unexpected) { if (traceJNI) unexpected.printStackTrace(System.err); env.recordException(unexpected); return -1; }
  private static long GetDirectBufferCapacity(VM_JNIEnvironment env,                                               int bufJREF) {    if (traceJNI) VM.sysWrite("JNI called: GetDirectBufferCapacity \n");       if (traceJNI) VM.sysWrite("GetDirectBufferCapacity not supported yet\n");    return -1;   }