MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / recoverTaoObject

Function recoverTaoObject

java/idl2jni/runtime/i2jrt_TAOObject.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include "tao/SystemException.h"
13
14CORBA::Object_ptr recoverTaoObject(JNIEnv *jni, jobject source)
15{
16 if (!source) return CORBA::Object::_nil();
17
18 jclass clazz = jni->FindClass("i2jrt/TAOObject");
19 jfieldID fid = jni->GetFieldID(clazz, "_jni_ptr", "J");
20 jlong _jni_ptr = jni->GetLongField(source, fid);
21 jni->DeleteLocalRef(clazz);
22 return reinterpret_cast<CORBA::Object_ptr>(_jni_ptr);
23}
24
25void JNICALL Java_i2jrt_TAOObject__1jni_1fini(JNIEnv *jni, jobject jThis)
26{

Calls

no outgoing calls

Tested by

no test coverage detected