Example #1
0
jint JNICALL Java_i2jrt_TAOObject__1hash(JNIEnv *jni, jobject jThis,
                                         jint i)
{
  CORBA::Object_ptr ptr = recoverTaoObject(jni, jThis);

  try {
    return ptr->_hash(i);

  } catch (const CORBA::SystemException &se) {
    throw_java_exception(jni, se);
  }

  return 0;
}
Example #2
0
VALUE
rCORBA_Object_hash(VALUE self, VALUE _max)
{
  CORBA::ULong ret=0, max;
  CORBA::Object_ptr obj = r2tao_Object_r2t (self);

  max = NUM2ULONG(_max);
  R2TAO_TRY
  {
    ret = obj->_hash(max);
  }
  R2TAO_CATCH;

  return ULONG2NUM(ret);
}